Skip to content

Commit

Permalink
Enable testing with sanitizers on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Feb 4, 2023
1 parent e0fcbf5 commit 132fd18
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 132fd18

Please sign in to comment.