forked from eclipse-iceoryx/iceoryx2
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.02 KB
/
miri-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Miri
on:
push:
branches: [ main ]
pull_request:
branches: [ main, release* ]
jobs:
miri:
name: "Miri"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
rustup override set nightly
cargo miri setup
- name: Test with Miri
run: |
# the script will be run at the project root, so use filename directly
filename=".miri_allowlist"
while IFS= read -r line; do
if [[ "$line" == \#* ]]; then
echo "$line"
continue
fi
if [[ -d $line ]]; then
cd "$line" || { echo "Failed to change directory to $line"; exit 1; }
echo "Run cargo miri test under: $(pwd)"
cargo miri test
cd -
else
echo "$line is not a valid directory."
fi
done < "$filename"