File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,24 @@ fn does_not_work_on_miri() {
94
94
}
95
95
```
96
96
97
+ ### Running Miri on CI
98
+
99
+ To run Miri on CI, make sure that you handle the case where the latest nightly
100
+ does not ship the Miri component because it currently does not build. For
101
+ example, you can use the following snippet to always test with the latest
102
+ nightly that * does* come with Miri:
103
+
104
+ ``` sh
105
+ MIRI_NIGHTLY=nightly-$( curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
106
+ echo " Installing latest nightly with Miri: $MIRI_NIGHTLY "
107
+ rustup default " $MIRI_NIGHTLY "
108
+
109
+ rustup component add miri
110
+ cargo miri setup
111
+
112
+ cargo miri test -- -- -Zunstable-options --exclude-should-panic
113
+ ```
114
+
97
115
### Common Problems
98
116
99
117
When using the above instructions, you may encounter a number of confusing compiler
You can’t perform that action at this time.
0 commit comments