name: CI # Kept small: main and pull requests, superseded runs cancelled. The board's # own gate lives in famicom-rust-fast; here the build, the lints, and the test # frontend (it skips without a dump: none is shipped). 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, build, 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 build --release - run: cargo test --release