File tree Expand file tree Collapse file tree 3 files changed +42
-56
lines changed
Expand file tree Collapse file tree 3 files changed +42
-56
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6565 - run : cargo test --no-default-features
6666 - run : cargo test
6767 - run : cargo test --all-features
68+
69+ miri :
70+ runs-on : ubuntu-latest
71+ env :
72+ MIRIFLAGS : " -Zmiri-symbolic-alignment-check -Zmiri-strict-provenance"
73+ strategy :
74+ matrix :
75+ target :
76+ - x86_64-unknown-linux-gnu
77+ - s390x-unknown-linux-gnu
78+ steps :
79+ - uses : actions/checkout@v4
80+ - uses : RustCrypto/actions/cargo-cache@master
81+ - uses : dtolnay/rust-toolchain@master
82+ with :
83+ toolchain : nightly
84+ - name : Install Miri
85+ run : |
86+ rustup component add miri
87+ cargo miri setup
88+ - name : Test with Miri
89+ run : |
90+ cargo miri test --target ${{ matrix.target }} --no-default-features
91+ cargo miri test --target ${{ matrix.target }}
92+ cargo miri test --target ${{ matrix.target }} --all-features
Original file line number Diff line number Diff line change @@ -80,36 +80,30 @@ jobs:
8080 - run : cargo check --features simd
8181 - run : cargo test --features simd
8282
83- # Cross-compiled tests
84- cross :
85- needs : set-msrv
83+ miri :
84+ runs-on : ubuntu-latest
85+ env :
86+ MIRIFLAGS : " -Zmiri-symbolic-alignment-check -Zmiri-strict-provenance"
8687 strategy :
8788 matrix :
88- rust :
89- - ${{needs.set-msrv.outputs.msrv}}
90- - stable
9189 target :
92- - i686-unknown-linux-gnu
9390 - x86_64-unknown-linux-gnu
94- - aarch64-unknown-linux-gnu
95- - powerpc-unknown-linux-gnu
96- features :
97- - no_unroll
98- - ' NO_FEATURE'
99-
100- runs-on : ubuntu-latest
101- defaults :
102- run :
103- # Cross mounts only current package, i.e. by default it ignores workspace's Cargo.toml
104- working-directory : .
91+ - s390x-unknown-linux-gnu
10592 steps :
10693 - uses : actions/checkout@v4
107- - uses : ./.github/actions/cross-tests
94+ - uses : dtolnay/rust-toolchain@master
10895 with :
109- rust : ${{ matrix.rust }}
110- package : ${{ github.workflow }}
111- target : ${{ matrix.target }}
112- features : ${{ matrix.features }}
96+ toolchain : nightly
97+ - name : Install Miri
98+ run : |
99+ rustup component add miri
100+ cargo miri setup
101+ - name : Test with Miri
102+ run : |
103+ cargo miri test --target ${{ matrix.target }} --no-default-features
104+ cargo miri test --target ${{ matrix.target }}
105+ cargo miri test --target ${{ matrix.target }} --features no_unroll
106+ cargo miri test --target ${{ matrix.target }} --features simd
113107
114108 aarch64-sha3 :
115109 needs : set-msrv
You can’t perform that action at this time.
0 commit comments