name: CI on: push: branches: [main] pull_request: branches: [main] env: CARGO_TERM_COLOR: always RISC0_DEV_MODE: 1 jobs: check: name: Check & Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@master with: toolchain: "1.91.1" components: clippy, rustfmt - name: Cache cargo registry uses: actions/cache@v4 with: path: | ~/.cargo/registry ~/.cargo/git target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | ${{ runner.os }}-cargo- - name: Format check run: cargo fmt --all -- --check - name: Clippy (workspace, skip guest builds) run: RISC0_SKIP_BUILD=1 cargo clippy --workspace --all-targets -- -D warnings - name: Tests (dev mode, skip ZK proof generation) run: cargo test --workspace env: RISC0_DEV_MODE: 1