Skip to content

Commit 487484e

Browse files
author
Alex
committed
feat(ci): miri test support for CI
1 parent 7cde26a commit 487484e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/actions/setup-builder/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ runs:
3535
rustup toolchain install ${RUST_VERSION}
3636
rustup override set ${RUST_VERSION}
3737
rustup component add rustfmt clippy
38+
rustup component add miri
3839
- name: Setup Rust toolchain according to rust-toolchain.toml
3940
shell: bash
4041
if: ${{ inputs.rust-version == '' }}
@@ -45,4 +46,4 @@ runs:
4546
- name: Fixup git permissions
4647
# https://github.com/actions/checkout/issues/766
4748
shell: bash
48-
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
49+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,13 @@ jobs:
160160
- name: Check MSRV
161161
run: |
162162
cargo +${{ env.rust_msrv }} check --locked --workspace
163+
164+
miri:
165+
name: Run Miri
166+
runs-on: ubuntu-latest
167+
steps:
168+
- uses: actions/checkout@v4
169+
- name: Setup Nightly Rust toolchain
170+
uses: ./.github/actions/setup-builder
171+
- name: Run Miri
172+
run: cargo miri test

0 commit comments

Comments
 (0)