Skip to content

Commit

Permalink
Test Miri on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Oct 15, 2020
1 parent 4b8715e commit 662d487
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,14 @@ jobs:
- name: Install Rust
run: rustup update 1.40.0 && rustup default 1.40.0
- run: cargo build

miri:
name: Miri
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust
run: ./ci/miri-rustup.rs
- run: MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test
7 changes: 7 additions & 0 deletions ci/miri-rustup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -ex

MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
rustup set profile minimal
rustup default "$MIRI_NIGHTLY"
rustup component add miri

0 comments on commit 662d487

Please sign in to comment.