add miri to CI
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
- { os: ubuntu-22.04, rust-version: "1.77", target: 'x86_64-unknown-linux-gnu'}
|
||||
# rust versions
|
||||
- { os: ubuntu-22.04, rust-version: beta, target: 'x86_64-unknown-linux-gnu'}
|
||||
- { os: ubuntu-22.04, rust-version: nightly, target: 'x86_64-unknown-linux-gnu'}
|
||||
- { os: ubuntu-22.04, rust-version: nightly, target: 'x86_64-unknown-linux-gnu', miri: true, components: ["miri"]}
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@@ -66,6 +66,7 @@ jobs:
|
||||
rust-version: ${{ matrix.rust-version }}
|
||||
targets: ${{ matrix.target }}
|
||||
cache-context: ${{ matrix.os }}
|
||||
components: ${{ matrix.components }}
|
||||
|
||||
# Build and test.
|
||||
- name: Build library
|
||||
@@ -73,6 +74,10 @@ jobs:
|
||||
- name: Test
|
||||
run: cargo test --target ${{ matrix.target }} ${{ matrix.test-args }} --all
|
||||
|
||||
- name: Check miri
|
||||
if: matrix.miri
|
||||
run: cargo miri test
|
||||
|
||||
# On stable rust builds, build a binary and publish as a github actions
|
||||
# artifact. These binaries could be useful for testing the pipeline but
|
||||
# are only retained by github for 90 days.
|
||||
|
||||
Reference in New Issue
Block a user