Test spcasm with miri #78
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: Test spcasm with miri | |
on: | |
schedule: | |
- cron: "0 0 * * 0" # every sunday at midnight | |
env: | |
CARGO_TERM_COLOR: always | |
MIRIFLAGS: -Zmiri-disable-isolation -Zmiri-ignore-leaks # thread leaks happen in trycmd, nothing we can do | |
jobs: | |
miri: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get number of CPU cores | |
uses: SimenB/github-actions-cpu-cores@v2 | |
id: cpu-cores | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: nightly-2024-11-20 | |
components: rust-src, miri | |
- name: Setup Miri | |
run: | | |
cargo miri setup | |
- name: Install nextest | |
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin | |
- name: Build Miri's binaries | |
# without arguments, spcasm exits right away with code 2 | |
run: cargo miri run --profile spcasm-fastrelease || true | |
- name: Test with Miri | |
run: cargo miri nextest run -j ${{ steps.cpu-cores.outputs.count }} --cargo-profile spcasm-fastrelease --config-file .github/nextest-ci.toml |