Skip to content

Commit 1a0c9ef

Browse files
committed
Auto merge of #93 - RalfJung:miri, r=Amanieu
miri CI: use latest nightly with Miri Instead of giving up when the latest nightly has no Miri, install the latest nightly that does have Miri.
2 parents ff155a2 + b39083a commit 1a0c9ef

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ci/miri.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -ex
55
export CARGO_NET_RETRY=5
66
export CARGO_NET_TIMEOUT=10
77

8-
if rustup component add miri && cargo miri setup ; then
9-
cargo miri test -- -- -Zunstable-options --exclude-should-panic
10-
fi
8+
MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
9+
echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
10+
rustup default "$MIRI_NIGHTLY"
11+
12+
rustup component add miri
13+
cargo miri setup
14+
15+
cargo miri test -- -- -Zunstable-options --exclude-should-panic

0 commit comments

Comments
 (0)