aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cmake-multi-platform.yml22
1 files changed, 14 insertions, 8 deletions
diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml
index e3f0ce7..57ac65d 100644
--- a/.github/workflows/cmake-multi-platform.yml
+++ b/.github/workflows/cmake-multi-platform.yml
@@ -60,14 +60,19 @@ jobs:
libzip
- name: Configure CMake
- run: >
- cmake -B ${{ steps.strings.outputs.build-output-dir }}
- -DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
- -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- -DTESTS=ON
- -DTESTS_VERBOSE=ON
- -DTESTS_RT=ON
- -DDEBUG_MESSAGES=ON
+ run: |
+ maybe_asan=""
+ if [[ "${RUNNER_OS}" == "Linux" ]]; then
+ maybe_asan="-DASAN=ON"
+ fi
+ cmake -B ${{ steps.strings.outputs.build-output-dir }} \
+ -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
+ ${maybe_asan} \
+ -DTESTS=ON \
+ -DTESTS_VERBOSE=ON \
+ -DTESTS_RT=ON \
+ -DDEBUG_MESSAGES=ON \
-S ${{ github.workspace }}
- name: Build
@@ -80,3 +85,4 @@ jobs:
run: ctest --build-config ${{ matrix.build_type }} --output-on-failure --output-junit results.xml --test-output-size-passed 65536 --test-output-size-failed 65536
env:
STASIS_SYSCONFDIR: ../../..
+ ASAN_OPTIONS: "verify_asan_link_order=0 strict_string_checks=1 detect_stack_use_after_return=1 detect_leaks=1"