Skip to content

Commit

Permalink
Add Miri tests to CI
Browse files Browse the repository at this point in the history
Miri is the unsound/undefined behavior checker for unsafe Rust.
  • Loading branch information
Posnet committed May 6, 2024
1 parent 22cf762 commit be5e32e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ jobs:
- run: cargo clippy --all-features -- -D warnings
- run: cargo clippy --no-default-features -- -D warnings

miri:
name: Miri
runs-on: ubuntu-latest
env:
# Needed since the tests interact with the filesystem
MIRIFLAGS: "-Zmiri-disable-isolation"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- run: cargo miri test --all-features

doc:
name: Build documentation
runs-on: ubuntu-latest
Expand Down

0 comments on commit be5e32e

Please sign in to comment.