Files
lucisv/.gitea/workflows/release.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

39 lines
1.5 KiB
YAML

# Release: pushing a tag `vX.Y.Z` builds every distribution artifact and
# publishes a Gitea release with the CHANGELOG section for that version as
# its notes. The artifact set is exactly what tools/release.sh --cross
# produces: host (Apple Silicon) + x86_64 macOS + static-musl Linux +
# RHEL 8-compatible linux-gnu + Windows binaries for both lucisv and
# lucisv-server, the platform-independent .vsix, and SHA256SUMS.
#
# The release fails, deliberately, when the tag does not match the
# workspace version or CHANGELOG.md has no section for it: every release
# ships with real, written notes (see tools/RELEASING.md).
name: release
on:
push:
tags:
- 'v*'
jobs:
build-and-publish:
runs-on: macos-arm64
steps:
- uses: actions/checkout@v4
- name: Build release artifacts for every target
run: tools/release.sh --cross
- name: Audit the cross-built artifacts
run: tools/audit_artifacts.sh dist
- name: Check the tag against the crate version
run: |
v=$(target/release/lucisv --version | awk '{print $2}')
[ "v$v" = "$GITHUB_REF_NAME" ] || {
echo "tag $GITHUB_REF_NAME does not match crate version $v" >&2
exit 1
}
- name: Extract the release notes from CHANGELOG.md
run: tools/release_notes.sh "${GITHUB_REF_NAME#v}" > dist/RELEASE_NOTES.md
- name: Create the release and attach the artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: tools/publish_release.sh "$GITHUB_REF_NAME" dist