# SPDX-License-Identifier: MIT name: CI # Kept small: main and pull requests only, and a newer run on the same ref cancels the older # one. `cargo test` is rungs 1 and 3 (the transcribed tests, and the 204 closed-box stream # replays against the committed hashes of the reference's traces). Rungs 2 and 4 need the # reference, sn76489-python, and run locally (docs/status.md). on: push: branches: [main] pull_request: concurrency: group: ci-${{ github.ref }} cancel-in-progress: true env: CARGO_TERM_COLOR: always jobs: build: name: fmt, clippy, test runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - run: cargo fmt --check - run: cargo clippy --release --all-targets --features serde -- -D warnings - run: cargo test --release --features serde