Skip to content

Commit 26c9900

Browse files
committed
Add miri testing
1 parent 91319e8 commit 26c9900

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,17 @@ jobs:
7676
command: bench
7777
env:
7878
COUNTS: 0,10,1000,100000,10000000
79-
if: ${{ matrix.rust != '1.32.0' }}
79+
if: ${{ matrix.rust != '1.32.0' }}
80+
81+
miri:
82+
name: MIRI testing
83+
runs-on: ubuntu-latest
84+
steps:
85+
- uses: actions/checkout@v2.3.4
86+
- uses: actions-rs/toolchain@v1.0.7
87+
with:
88+
profile: minimal
89+
toolchain: nightly
90+
override: true
91+
- name: Run miri
92+
run: ./ci/miri.sh

ci/miri.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ rustup component add miri
99

1010
# Run tests
1111
cargo miri test
12-
cargo miri test --target=mips64-unknown-linux-gnuabi64 # big-endian architecture
13-
14-
# Restore old state in case Travis uses this cache for other jobs.
15-
rustup default nightly
12+
cargo miri test --target=mips64-unknown-linux-gnuabi64 # big-endian architecture

0 commit comments

Comments
 (0)