Skip to content

Commit

Permalink
Run tests with address, undefined, and thread sanitizer in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Sep 4, 2024
1 parent 0550b7b commit 0a8ede8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
buildtype: [debug, release]
sanitizer: [none, address, undefined, thread]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand All @@ -21,13 +22,14 @@ jobs:
- name: Set up ccache
uses: hendrikmuhs/[email protected]
with:
key: ccache-linux-${{ matrix.buildtype }}
key: ccache-linux-${{ matrix.buildtype }}-${{ matrix.sanitizer }}
- name: Setup compiler and build tools
run: sudo apt install --no-install-recommends --yes g++-12 meson ninja-build
- name: Configure
run: |
CXX="ccache g++-12" meson setup \
--buildtype ${{ matrix.buildtype }} \
-Db_sanitize=${{ matrix.sanitizer }} \
--warnlevel 3 \
--werror \
build .
Expand Down

0 comments on commit 0a8ede8

Please sign in to comment.