Skip to content

Run Miri and TSAN with and without nightly APIs. #44

Run Miri and TSAN with and without nightly APIs.

Run Miri and TSAN with and without nightly APIs. #44

Workflow file for this run

on: [push, pull_request]
name: Tests with TSAN
jobs:
tsan:
strategy:
matrix:
test_features:
- ""
- ",nightly,nightly_tests"
include:
- test_features: ""
all_test_features: ""
- test_features: ",nightly,nightly_tests"
all_test_features: "--features=nightly,nightly_tests"
fail-fast: false
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings -Zsanitizer=thread"
RUSTDOCFLAGS: "-Zsanitizer=thread"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- name: Run tests (no default features)
run: cargo test --release -Zbuild-std --target=x86_64-unknown-linux-gnu --verbose --all --no-default-features ${{ matrix.all_test_features }}
- name: Run tests (log feature)
run: cargo test --release -Zbuild-std --target=x86_64-unknown-linux-gnu --verbose --all --no-default-features --features=log${{ matrix.test_features }}
- 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${{ matrix.test_features }}