Unsoundness checks #862
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
name: Unsoundness checks | |
on: | |
schedule: | |
# Weekly on Monday at 04:00 UTC | |
- cron: '0 4 * * 1' | |
workflow_dispatch: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: "--cfg=ci_run" | |
# Permissive provenance is required due to warnings in bitvec 1.0.1 | |
# Proptest flags required to fix https://github.com/proptest-rs/proptest/issues/253 | |
MIRIFLAGS: '-Zmiri-permissive-provenance -Zmiri-env-forward=PROPTEST_DISABLE_FAILURE_PERSISTENCE' | |
PROPTEST_DISABLE_FAILURE_PERSISTENCE: true | |
jobs: | |
miri: | |
name: "Miri" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Miri | |
run: | | |
rustup toolchain install nightly --component miri | |
rustup override set nightly | |
cargo miri setup | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: v0-miri | |
- name: Install CapnProto | |
run: sudo apt-get install -y capnproto | |
- name: Test with Miri | |
run: cargo miri test | |
create-issue: | |
uses: CQCL/hugrverse-actions/.github/workflows/create-issue.yml@main | |
needs: miri | |
if: always() && needs.miri.result == 'failure' && github.event_name == 'push' | |
secrets: | |
GITHUB_PAT: ${{ secrets.HUGRBOT_PAT }} | |
with: | |
title: "💥 Unsoundness check failed on main" | |
body: | | |
The unsoundness check for `CQCL/hugr` failed. | |
[https://github.com/CQCL/hugr/actions/runs/${{ github.run_id }}](Please investigate). | |
unique-label: "unsoundness-checks" | |
other-labels: "bug" |