-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests with address, undefined, and thread sanitizer in CI
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -19,13 +20,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 . | ||
|