Enable testing with sanitizers on the CI

This commit is contained in:
Thomas de Zeeuw
2023-02-04 15:58:58 +01:00
parent 4d78dc35da
commit 68777e2e66
+18
View File
@@ -139,6 +139,24 @@ jobs:
run: cargo install --debug cargo-hack
- name: Check all targets
run: make check_all_targets
Sanitizer:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
sanitizer: [address, leak, memory, thread]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Add rust source
run: rustup component add rust-src
- name: Run tests with sanitizer
run: make test_sanitizer SAN=${{ matrix.sanitizer }}
# Single job required to merge the pr.
Passed:
runs-on: ubuntu-latest