File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Miri
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main, release* ]
8
+
9
+ jobs :
10
+ miri :
11
+ name : " Miri"
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Install Miri
16
+ run : |
17
+ rustup toolchain install nightly --component miri
18
+ rustup override set nightly
19
+ cargo miri setup
20
+ - name : Test with Miri
21
+ run : |
22
+ # the script will be run at the project root, so use filename directly
23
+ filename=".miri_allowlist"
24
+ while IFS= read -r line; do
25
+ if [[ "$line" == \#* ]]; then
26
+ echo "$line"
27
+ continue
28
+ fi
29
+ if [[ -d $line ]]; then
30
+ cd "$line" || { echo "Failed to change directory to $line"; exit 1; }
31
+ echo "Run cargo miri test under: $(pwd)"
32
+ cargo miri test
33
+ cd -
34
+ else
35
+ echo "$line is not a valid directory."
36
+ fi
37
+ done < "$filename"
38
+
39
+
Original file line number Diff line number Diff line change
1
+ # .miri_allowlist use hash character to lead a comment
2
+ # each line will be treated as a valid path to enter and run 'cargo miri test'
3
+ # note that a new line is required at the end of file
4
+ ./iceoryx2-bb/testing
You can’t perform that action at this time.
0 commit comments