ci: attach a prebuilt x86_64 binary to each release - #75
Merged
Conversation
Add .github/workflows/release.yml: on a published release (what scripts/release.sh publish creates) it builds oans on Ubuntu 22.04 — an intentionally low glibc floor so the binary runs on older distros too — strips it, and attaches oans-X.Y.Z-linux-x86_64.tar.gz (+ .sha256) to the release. The tarball bundles the man page, zsh completion, README, LICENSE and an INSTALL.txt listing the five runtime libraries (glib/sqlite/blkid/mount/uuid) plus the exact ldd output. workflow_dispatch with a tag input backfills assets for an existing release (e.g. v1.2.0). Also point the README Quick start at the prebuilt binary and update the CLAUDE.md release note (was "Releases attach no build artifacts"). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.github/workflows/release.ymlso every release automatically gets a downloadable prebuilt binary — the top install-friction item before launch.How it works
release: published(exactly whatscripts/release.sh publishproduces), plusworkflow_dispatchwith ataginput to backfill an existing release (e.g. v1.2.0).fetch-depth: 0sogit describe --tagsstamps the clean version.oans-X.Y.Z-linux-x86_64.tar.gz(+.sha256), bundling the man page, zsh completion, README, LICENSE, and anINSTALL.txtwith install steps, the runtime library list, and the exactlddoutput.gh release upload --clobber(needs only the built-inGITHUB_TOKEN;permissions: contents: write).Runtime deps are minimal —
lddconfirms just glib-2.0, sqlite3, blkid, mount, uuid (libbsd/xxhash are compiled in). Stripped tarball is ~77 KB locally.Docs
To backfill v1.2.0 after merge
Actions → Release binaries → Run workflow → tag
v1.2.0.Note: a fully static binary isn't practical (glib pulls in pcre2/z/ffi/…), so this is a dynamic build against ubiquitous libraries — the pragmatic, reliable choice.
🤖 Generated with Claude Code