From c3a572632c261aba1ac1b1b18b5f80cd9253de14 Mon Sep 17 00:00:00 2001 From: Michael van Straten Date: Sun, 17 Nov 2024 18:48:01 +0100 Subject: [PATCH] Run CI test with address sanitization --- .github/workflows/tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 542ad317..6c69b942 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,6 +20,8 @@ jobs: -DCMAKE_BUILD_TYPE=Release -S ${{ github.workspace }} -DCMAKE_INSTALL_PREFIX=${{ github.workspace }} + -DCMAKE_CXX_FLAGS="-fsanitize=address -g" + -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" - name: Build ADOLC run: | @@ -36,7 +38,10 @@ jobs: run: | cd ADOL-C/boost-test mkdir build && cd build - cmake ../ -DADOLC_BASE=${{ github.workspace }} + cmake ../ \ + -DADOLC_BASE=${{ github.workspace }} \ + -DCMAKE_CXX_FLAGS="-fsanitize=address -g" \ + -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" make ./boost-test-adolc - \ No newline at end of file +