The release workflow runs tools/gates.sh (after ensuring the cached corpus)
before it builds anything, so a tag whose tree fails a gate publishes
nothing; until now only the branch push was checked, by a workflow the
release did not wait for. No product change: the packages are 0.65.0
rebuilt, plus the test-only import fix in 5c00b70.
Version bump (Cargo.toml, Cargo.lock, editors/vscode/package.json and both
package-lock.json spots); notes in CHANGELOG.md (## 0.65.1) and
editors/vscode/CHANGELOG.md. tools/RELEASING.md and docs/topo.md describe
the gated workflow and the new lustudio-arm64 runner.
Gates: tools/gates.sh PASS on this tree (target/gates/20261119-032522),
all fifteen steps, corpus 814/6.
Co-Authored-By: Claude Mythos 5.2 <[email protected]>
70 lines
3.4 KiB
YAML
70 lines
3.4 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. What the release page carries is the seven .vsix packages —
|
|
# the universal one, the five (darwin-arm64/darwin-x64/linux-x64/
|
|
# linux-arm64/win32-x64) with the lucisv + lucisv-server + lucisv-mcp binaries embedded,
|
|
# and the all-platforms one carrying every platform's three binaries at once — plus SHA256SUMS.
|
|
# Every package is a must: a missing one fails the release, by name
|
|
# (tools/prune_release_assets.sh). The loose binaries are still built for
|
|
# every target
|
|
# (the packages are made from them) and still audited, but they are not
|
|
# attached: anyone who wants a standalone binary builds it with
|
|
# `cargo build --release` (docs/features/editor-platform-vsix).
|
|
#
|
|
# 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).
|
|
#
|
|
# It is gated: tools/gates.sh (fmt, clippy, every crate's suites, the doc
|
|
# tests, the corpus gate, the extension's node tests) runs first, and a red
|
|
# gate means nothing is built or published. The ci workflow runs on the
|
|
# branch push, not the tag, so without this step a tag published whatever
|
|
# it pointed at (0.65.0 went out while its ci run was still stuck).
|
|
name: release
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: macos-arm64
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# The corpus is pinned-rev clones cached on the runner host, as in
|
|
# ci.yml; gates.sh skips its corpus step when the cache is absent, so
|
|
# fetch it here rather than release without that gate.
|
|
- name: Ensure the cached corpus
|
|
run: |
|
|
corpus="$HOME/.cache/lucisv-corpus"
|
|
[ -d "$corpus" ] || tools/corpus_fetch.sh "$corpus"
|
|
- name: Gate the release
|
|
run: tools/gates.sh
|
|
- 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
|
|
}
|
|
# The release page ships extension packages only: all seven checked by
|
|
# name, SHA256SUMS filtered down to them and re-verified, the loose
|
|
# binaries (needed to build and audit the packages) dropped.
|
|
- name: Keep only the extension packages
|
|
run: tools/prune_release_assets.sh dist "${GITHUB_REF_NAME#v}"
|
|
- name: Extract the release notes from CHANGELOG.md
|
|
run: tools/release_notes.sh "${GITHUB_REF_NAME#v}" > dist/RELEASE_NOTES.md
|
|
# LUCISV_API_URL is an optional repository Actions variable naming a
|
|
# direct http://host:port for the Gitea API, so the uploads do not go
|
|
# through Cloudflare's 100-second origin timeout (0.29.0 and 0.30.0
|
|
# both died there with a 524). Unset, the public URL is used.
|
|
- name: Create the release and attach the artifacts
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
LUCISV_API_URL: ${{ vars.LUCISV_API_URL }}
|
|
run: tools/publish_release.sh "$GITHUB_REF_NAME" dist
|