# SPDX-License-Identifier: MIT name: CI # Kept small: main and pull requests, superseded runs cancelled. The reference (a5200-python) # is private and the BIOS, cartridges and Acid5200 ROMs are local, so the lockstep gate and the # Acid5200 rung run by hand (scripts/ladder.sh, docs/status.md); CI runs fmt, clippy and the # tests, which need no ROM. The CPU (alewman/6502-rust) and POKEY (alewman/pokey-rust) are git # dependencies at pinned revisions of public repositories, so no token is needed. 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 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - run: cargo fmt --check - run: cargo clippy --release --all-targets -- -D warnings - run: cargo test --release