Skip to content

Commit

Permalink
Add TSAN test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
gendx committed Nov 20, 2024
1 parent 196e371 commit b2ebf71
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tsan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: [push, pull_request]
name: Tests with TSAN
jobs:
tsan:
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings -Zsanitizer=thread"
RUSTDOCFLAGS: "-Zsanitizer=thread"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly

- name: Run tests (no default features)
run: cargo test --release -Zbuild-std --target=x86_64-unknown-linux-gnu --verbose --all --no-default-features --features=nightly,nightly_tests
- name: Run tests (log feature)
run: cargo test --release -Zbuild-std --target=x86_64-unknown-linux-gnu --verbose --all --no-default-features --features=log,nightly,nightly_tests
- name: Run tests (log_parallelism feature)
run: cargo test --release -Zbuild-std --target=x86_64-unknown-linux-gnu --verbose --all --no-default-features --features=log_parallelism,nightly,nightly_tests

0 comments on commit b2ebf71

Please sign in to comment.