# SPDX-License-Identifier: MIT name: CI # Kept small: main and pull requests, superseded runs cancelled. The reference # (a2600-python) is private and the dumps are local, so the lockstep and the # native judges run by hand (scripts/ladder.sh, docs/status.md); CI runs fmt, # clippy and the tests (the data tests skip without the reference's checkout). # The CPU (alewman/6502-rust) is a path dependency checked out beside this one. 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: 20 steps: - uses: actions/checkout@v4 with: path: a2600-rust - uses: actions/checkout@v4 with: repository: alewman/6502-rust ref: 129e742c04521d3c019ede6b97017a8d440500f0 path: 6502-rust - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - run: cargo fmt --check working-directory: a2600-rust - run: cargo clippy --release --all-targets -- -D warnings working-directory: a2600-rust - run: cargo test --release working-directory: a2600-rust