# SPDX-License-Identifier: MIT name: CI # Kept small, as gameboy-rust's: main and pull requests, superseded runs cancelled. The # reference (a7800-python), the dumps and the BIOS are local, so the lockstep, the 2600 gates # and the seeded faults run by hand (scripts/ladder.sh, docs/status.md); CI runs fmt, clippy # and the tests (those that need a dump or a BIOS skip, saying so). The board's crates are path # dependencies checked out beside this one at their pins: 6502-rust and pokey-rust are public. # # OWED: a2600-rust (f9af024) has no remote yet (its rebuilt history is local; the archived # alewman/a2600-rust is a different, older project and must not be used). Until it is pushed # somewhere this workflow can check out, the a2600-rust step below fails; A2600_RUST_REPO # names where it will be. on: push: branches: [main] pull_request: concurrency: group: ci-${{ github.ref }} cancel-in-progress: true env: CARGO_TERM_COLOR: always A2600_RUST_REPO: alewman/a2600-rust jobs: build: name: fmt, clippy, test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: path: a7800-rust - uses: actions/checkout@v4 with: repository: ${{ env.A2600_RUST_REPO }} ref: c40bcf68a8f0b43ba6e002f7e9934f14ea3aa4e1 path: a2600-rust - uses: actions/checkout@v4 with: repository: alewman/6502-rust ref: 1a7e1343be9e690c16dc58e6712b8c1184345a9c path: 6502-rust - uses: actions/checkout@v4 with: repository: alewman/pokey-rust ref: b37263dca3b566acb319f29e5dca58dccaa1f017 path: pokey-rust - run: sudo apt-get update && sudo apt-get install -y libsdl2-dev - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - run: cargo fmt --check working-directory: a7800-rust - run: cargo clippy --release --all-targets --features frontend -- -D warnings working-directory: a7800-rust - run: cargo test --release working-directory: a7800-rust