Files
lucisv/.gitea/workflows/ci.yml
T
lucioandClaude Fable 5 c556a13857
ci / checks (push) Successful in 36s
ci / corpus (push) Successful in 26s
release / build-and-publish (push) Successful in 3m7s
CI: corpus score is a gate, releases audit their artifacts; v0.7.2
The corpus job scores the pinned-rev corpus (cached at
~/.cache/lucisv-corpus on the runner, fetched once on a miss) on every
push and fails below scripts/corpus-baseline (813) or on any
verification error / crash. The release workflow now runs
tools/audit_artifacts.sh before publishing: musl must be fully static,
linux-gnu's glibc ceiling must stay <= 2.28 (RHEL 8), every file must be
the object format its name claims — verified against the 10 real v0.7.1
release binaries. Linux execution under Docker was considered and
declined: no container runtime on the runner. Version 0.7.2 with a
changelog covering this, the printer column fix and the README truth
pass.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-26 02:13:04 -07:00

40 lines
1.3 KiB
YAML

# 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"