Skip to content

Commit 588ae82

Browse files
committed
Test Miri on CI
1 parent 4b8715e commit 588ae82

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/main.yml

+11
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,14 @@ jobs:
192192
- name: Install Rust
193193
run: rustup update 1.40.0 && rustup default 1.40.0
194194
- run: cargo build
195+
196+
miri:
197+
name: Miri
198+
runs-on: ubuntu-latest
199+
steps:
200+
- uses: actions/checkout@v1
201+
with:
202+
submodules: true
203+
- name: Install Rust
204+
run: ./ci/miri-rustup.sh
205+
- run: MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test

ci/miri-rustup.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set -ex
2+
3+
MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
4+
echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
5+
rustup set profile minimal
6+
rustup default "$MIRI_NIGHTLY"
7+
rustup component add miri

0 commit comments

Comments
 (0)