Skip to content

Commit 9b2ee61

Browse files
Add sanitizers to meson CI matrix
1 parent 9cb6791 commit 9b2ee61

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/meson.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ on:
99
jobs:
1010
build-and-test:
1111
strategy:
12+
fail-fast: false
1213
matrix:
1314
cpp_compiler: [g++, clang++]
15+
sanitize: [address ,undefined, thread, memory]
16+
exclude:
17+
- cpp_compiler: g++
18+
sanitize: memory
1419

1520
runs-on: ubuntu-latest
1621

@@ -23,10 +28,10 @@ jobs:
2328
- name: Setup
2429
env:
2530
CXX: ${{ matrix.cpp_compiler }}
26-
run: meson setup build -Dwerror=true -Dwarning_level=3
31+
run: meson setup build -Dwerror=true -Dwarning_level=3 -Db_sanitize=${{ matrix.sanitize }}
2732

2833
- name: Compile
2934
run: meson compile -C build
3035

3136
- name: Test
32-
run: meson test -C build
37+
run: meson test -C build --print-errorlogs

0 commit comments

Comments
 (0)