Skip to content

Commit

Permalink
CI: add miri checks (#5)
Browse files Browse the repository at this point in the history
Should help identify potentially problematic unsafe code
  • Loading branch information
tarcieri authored Jan 11, 2024
1 parent 0112ee0 commit 8a28fe9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/hybrid-array.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ jobs:
- run: cargo test
- run: cargo test --all-features

miri:
runs-on: ubuntu-latest
env:
MIRIFLAGS: "-Zmiri-symbolic-alignment-check -Zmiri-strict-provenance"
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- s390x-unknown-linux-gnu
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: rustup component add miri && cargo miri setup
- run: cargo miri test --target ${{ matrix.target }} --all-features

clippy:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 8a28fe9

Please sign in to comment.