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'}
|
- { os: ubuntu-22.04, rust-version: "1.77", target: 'x86_64-unknown-linux-gnu'}
|
||||||
# rust versions
|
# rust versions
|
||||||
- { os: ubuntu-22.04, rust-version: beta, target: 'x86_64-unknown-linux-gnu'}
|
- { 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:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -66,6 +66,7 @@ jobs:
|
|||||||
rust-version: ${{ matrix.rust-version }}
|
rust-version: ${{ matrix.rust-version }}
|
||||||
targets: ${{ matrix.target }}
|
targets: ${{ matrix.target }}
|
||||||
cache-context: ${{ matrix.os }}
|
cache-context: ${{ matrix.os }}
|
||||||
|
components: ${{ matrix.components }}
|
||||||
|
|
||||||
# Build and test.
|
# Build and test.
|
||||||
- name: Build library
|
- name: Build library
|
||||||
@@ -73,6 +74,10 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test --target ${{ matrix.target }} ${{ matrix.test-args }} --all
|
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
|
# On stable rust builds, build a binary and publish as a github actions
|
||||||
# artifact. These binaries could be useful for testing the pipeline but
|
# artifact. These binaries could be useful for testing the pipeline but
|
||||||
# are only retained by github for 90 days.
|
# are only retained by github for 90 days.
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ fn call_0() {
|
|||||||
// issue #2361
|
// issue #2361
|
||||||
#[serial]
|
#[serial]
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(miri, ignore = "blocked on helper.rs UB")]
|
||||||
fn call_qualification() {
|
fn call_qualification() {
|
||||||
load_module_test("tests-pl/issue2361-call-qualified.pl", "");
|
load_module_test("tests-pl/issue2361-call-qualified.pl", "");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user