diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-20 17:05:00 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-21 11:02:16 -0400 |
| commit | 0231d08f3389be3271fd8be922491b662fb863b5 (patch) | |
| tree | 2a67e8ce2cf6696b110313697d92890ccec5f566 | |
| parent | 86bcce7152b3aeb77a5fa66e17cabb6cca61b43d (diff) | |
| download | stasis-0231d08f3389be3271fd8be922491b662fb863b5.tar.gz | |
Disable leak check on "macOS"
| -rw-r--r-- | .github/workflows/cmake-multi-platform.yml | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 57ac65d..e2315f7 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -60,19 +60,15 @@ jobs: libzip - name: Configure CMake - 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 \ + run: > + cmake -B ${{ steps.strings.outputs.build-output-dir }} + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -DASAN=ON + -DTESTS=ON + -DTESTS_VERBOSE=ON + -DTESTS_RT=ON + -DDEBUG_MESSAGES=ON -S ${{ github.workspace }} - name: Build @@ -82,7 +78,13 @@ jobs: - name: Test working-directory: ${{ steps.strings.outputs.build-output-dir }} - run: ctest --build-config ${{ matrix.build_type }} --output-on-failure --output-junit results.xml --test-output-size-passed 65536 --test-output-size-failed 65536 + run: | + export ASAN_OPTIONS="verify_asan_link_order=0 strict_string_checks=1 detect_stack_use_after_return=1" + if [[ "$RUNNER_OS" == "macOS" ]]; then + ASAN_OPTIONS="$ASAN_OPTIONS detect_leaks=0" + else + ASAN_OPTIONS="$ASAN_OPTIONS detect_leaks=1" + fi + 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" |
