From d0cd7bf9b0da1a61dce02c60c3be04b268b1cf38 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 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..57312b691 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 + + 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)