From 4e7623a0728fef014735323ad0fc8838a537a6d4 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Wed, 7 May 2025 20:44:49 -0400 Subject: [PATCH] Update dev_asan.yml adding homebrew --- .github/workflows/dev_asan.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/dev_asan.yml b/.github/workflows/dev_asan.yml index bffafd3e..f4808705 100644 --- a/.github/workflows/dev_asan.yml +++ b/.github/workflows/dev_asan.yml @@ -22,6 +22,9 @@ jobs: run: cd build && CXX=clang++ cmake .. -DCMAKE_BUILD_TYPE=Asan -DCOOLPROP_ASAN=ON -DCOOLPROP_CATCH_MODULE=ON - name: build all Catch tests run: cmake --build build --config Asan + - name: Add Homebrew to $PATH + # See: https://github.com/actions/runner-images/issues/6283#issuecomment-1260838338 + run: echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH - name: run all the compiled Catch tests with address sanitizer run: cd build && ASAN_OPTIONS=detect_stack_use_after_return=1:verbosity=1 ASAN_SYMBOLIZER_PATH=`brew --prefix`/opt/llvm/bin/llvm-symbolizer ./catch_tests --benchmark-samples 1 # ASAN CLI docs here: https://github.com/google/sanitizers/wiki/AddressSanitizerFlags