Skip to content

Commit 56d4469

Browse files
committed
run tests with Miri
1 parent 2a83c01 commit 56d4469

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/CI.yml

+22
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- style
1717
- test
1818
- msrv
19+
- miri
1920
- features
2021
- ffi
2122
- ffi-header
@@ -124,6 +125,27 @@ jobs:
124125
command: check
125126
args: --features full
126127

128+
miri:
129+
name: Test with Miri
130+
needs: [style]
131+
runs-on: ubuntu-latest
132+
133+
steps:
134+
- name: Checkout
135+
uses: actions/checkout@v1
136+
137+
- name: Install Rust
138+
uses: actions-rs/toolchain@v1
139+
with:
140+
profile: minimal
141+
toolchain: nightly
142+
components: miri
143+
override: true
144+
145+
- name: Test
146+
# Can't enable tcp feature since Miri does not support the tokio runtime
147+
run: MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --features http1,http2,client,server,stream,nightly
148+
127149
features:
128150
name: features
129151
needs: [style]

0 commit comments

Comments
 (0)