# SPDX-License-Identifier: MIT name: CI # Kept small: main and pull requests, superseded runs cancelled, a job timeout. # The lockstep rungs (1, 4), the corpus (2), the programs (3) and the seeded # faults (6) need w65c02-python and its fetched data, which are private and # outside this repository: they run locally (scripts/ladder.sh). CI runs what # needs nothing private: fmt, clippy, and the tests, which are rung 5. 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 (rung 5) runs-on: ubuntu-latest timeout-minutes: 20 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 - name: "rung 5: the frame carries the rows, no NMOS code linked" run: scripts/rung5.sh