Skip to content

Commit ee2f968

Browse files
committed
ci: run miri
1 parent e89b493 commit ee2f968

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/_build-rust.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ on:
5050
required: false
5151
default: true
5252
description: Execute tests.
53+
do-miri:
54+
type: boolean
55+
required: false
56+
default: false
57+
description: Execute unit tests with miri.
5358

5459
jobs:
5560
rust:
@@ -104,3 +109,8 @@ jobs:
104109
Expand-Archive .\cargo-nextest.zip
105110
cp .\cargo-nextest/cargo-nextest.exe .
106111
.\cargo-nextest.exe nextest run --features ${{ inputs.features }}
112+
- name: Unit Test with Miri
113+
if: inputs.do-miri
114+
run: |
115+
rustup component add miri
116+
cargo miri run

.github/workflows/rust.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,14 @@ jobs:
109109
do-style-check: true
110110
do-test: false
111111
features: unstable
112+
113+
miri:
114+
name: tests with miri (nightly)
115+
needs: build_nightly
116+
uses: ./.github/workflows/_build-rust.yml
117+
with:
118+
rust-version: nightly
119+
do-style-check: false
120+
do-test: false
121+
do-miri: true
122+
features: unstable

0 commit comments

Comments
 (0)