# CI: the three checks CLAUDE.md requires before any work is finished, # plus the corpus gate, enforced on every push. Runs on the self-hosted # mac-arm64 runner in host mode (no containers), so the toolchain is the # same one releases are built with. name: ci on: push: branches: [master] pull_request: jobs: checks: runs-on: macos-arm64 steps: - uses: actions/checkout@v4 - name: cargo fmt run: cargo fmt --all -- --check - name: cargo clippy run: cargo clippy --all-targets -- -D warnings - name: cargo test run: cargo test --workspace # The 99.1% headline, enforced: score the 820-file corpus and fail on any # regression below scripts/corpus-baseline (verification errors and # crashes fail outright). The corpus is pinned-rev clones (not in the # repo), cached on the runner host and fetched once on a cache miss. corpus: runs-on: macos-arm64 steps: - uses: actions/checkout@v4 - name: Ensure the cached corpus run: | corpus="$HOME/.cache/lucisv-corpus" [ -d "$corpus" ] || tools/corpus_fetch.sh "$corpus" echo "CORPUS=$corpus" >> "$GITHUB_ENV" - name: Build the release binary the scorer drives run: cargo build --release -p lucisv - name: Score and gate run: scripts/corpus_gate.sh "$CORPUS"