forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
176 changed files
with
5,138 additions
and
2,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Miri | ||
on: | ||
push: | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }} | ||
# Only cancel in PR mode. In push mode, don't cancel so we don't see spurious test "failures", | ||
# and we get coverage reports on Coveralls for every push. | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
miri: | ||
if: github.repository_owner == 'Qiskit' | ||
name: Miri | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSTUP_TOOLCHAIN: nightly | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: miri | ||
|
||
- name: Prepare Miri | ||
run: | | ||
set -e | ||
# Some of our dependencies aren't Miri-safe with their current release versions. These | ||
# need overriding with known-good versions to run against until the Miri-safe versions are | ||
# released and updated in our Cargo.lock. | ||
cat >>Cargo.toml <<EOF | ||
[patch.crates-io] | ||
crossbeam-epoch = { git = "https://github.com/crossbeam-rs/crossbeam", rev = "9e859610" } | ||
EOF | ||
cargo miri setup | ||
- name: Run Miri | ||
run: cargo miri test | ||
env: | ||
# - `tree-borrows` is required for crossbeam components. | ||
# - `symbolic-alignment-check` is extra checking. | ||
# - `strict-provenance` is extra checking. | ||
MIRIFLAGS: '-Zmiri-tree-borrows -Zmiri-symbolic-alignment-check -Zmiri-strict-provenance' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.