add miri to CI

This commit is contained in:
Bennet Bleßmann
2024-07-06 15:46:04 +02:00
parent 285f11ccdc
commit 33793193cc
2 changed files with 7 additions and 1 deletions

View File

@@ -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.

View File

@@ -15,6 +15,7 @@ fn call_0() {
// issue #2361
#[serial]
#[test]
#[cfg_attr(miri, ignore = "blocked on helper.rs UB")]
fn call_qualification() {
load_module_test("tests-pl/issue2361-call-qualified.pl", "");
}