From 0231d08f3389be3271fd8be922491b662fb863b5 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 20 Apr 2026 17:05:00 -0400 Subject: Disable leak check on "macOS" --- .github/workflows/cmake-multi-platform.yml | 32 ++++++++++++++++-------------- 1 file 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" -- cgit