| 1 | #!/bin/bash |
| 2 | set -ex |
| 3 | |
| 4 | # Setup |
| 5 | MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri) |
| 6 | echo "Installing latest nightly with Miri: $MIRI_NIGHTLY" |
| 7 | rustup default "$MIRI_NIGHTLY" |
| 8 | rustup component add miri |
| 9 | |
| 10 | # Run tests |
| 11 | cargo miri test |
| 12 | cargo miri test --target=mips64-unknown-linux-gnuabi64 # big-endian architecture |