# SPDX-License-Identifier: MIT name: CI # Kept small: main and pull requests, superseded runs cancelled, a job timeout. The # reference (lynx-python), the boot ROM, the carts and the test ROMs are private or # bring-your-own, so the lockstep gate and the seeded faults run locally # (scripts/ladder.sh, docs/status.md); CI runs fmt, clippy and the ROM-free tests. The CPU # (alewman/w65c02-rust) is a path dependency, checked out beside this one at its pinned # commit (if that repository is private, give the checkout a token). 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: lynx-rust - uses: actions/checkout@v4 with: repository: alewman/w65c02-rust ref: 99c3e192eaffb8b66de29f10806d24fa0df48814 path: w65c02-rust - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - run: cargo fmt --check working-directory: lynx-rust - run: cargo clippy --release --all-targets -- -D warnings working-directory: lynx-rust - run: cargo test --release working-directory: lynx-rust