From 1462c19059268c8655bc8735827e7585dab71f25 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Thu, 27 Jun 2024 03:26:25 +0000 Subject: [PATCH] Add Github Actions job to run tests with ASAN enabled Probably only worth doing this with latest clang. --- .github/workflows/linux.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8b30685f7..274ff457a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -117,6 +117,24 @@ jobs: run: | cd build ./test/run_tests "~[quality]" + build-clang13-asan: + runs-on: ubuntu-latest + name: Clang 13 + ASAN + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + - name: Build mockturtle with ASAN + run: | + mkdir build + cd build + cmake -DCMAKE_CXX_COMPILER=clang++-13 -DENABLE_ASAN=ON -DMOCKTURTLE_TEST=ON .. + make run_tests + - name: Run tests with ASAN + run: | + cd build + ./test/run_tests "~[quality]" compile-gcc9: runs-on: ubuntu-latest name: Compile everything (GCC 9)