Skip to content

Commit e21f31f

Browse files
committed
run Miri on CI (but allowed to fail)
1 parent 53b2b20 commit e21f31f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,26 @@ jobs:
5858
- name: Run Clippy
5959
run: cargo clippy --all-targets --target ${{ matrix.target }}
6060

61+
miri:
62+
name: "miri"
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v2
66+
- name: Install Miri
67+
run: |
68+
rustup toolchain install nightly --component miri
69+
rustup override set nightly
70+
cargo miri setup
71+
- name: Test with Miri
72+
continue-on-error: true
73+
run: |
74+
cargo miri test --test i32_ops -- --skip max --skip min --skip is_
75+
cargo miri test --test f32_ops -- --skip max --skip min --skip is_
76+
# Need a step after the failing one to give the PR a green checkmark
77+
- name: Allow failures
78+
run: true
79+
80+
6181
x86-tests:
6282
name: "${{ matrix.target_feature }} on ${{ matrix.target }}"
6383
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)