[build] goreleaser cross-platform binaries + release workflow (STAR-53)#24
Merged
Conversation
Add prebuilt-binary distribution so the CLI installs without a Go toolchain (the v0.1.0 cost-price audit's top P1 / biggest adoption barrier — currently `go install` only, needing Go 1.25). - .goreleaser.yaml: builds linux/darwin/windows × amd64/arm64 with CGO disabled (modernc/sqlite is pure Go, so the whole binary is static and cross-compiles), -trimpath + the same version ldflags the Makefile injects (package config), tar.gz archives (zip on Windows), checksums, GitHub release. - .github/workflows/release.yml: on a vX.Y.Z tag, run GoReleaser. The third-party goreleaser-action is pinned to a full commit SHA (supply-chain policy). The tag is still cut by a human after confirmation; the workflow only turns a tag into archives + a Release, and never fires on a PR. - .gitignore: dist/. Verified locally: `goreleaser check` passes; `release --snapshot --clean` builds all six platform archives + checksums, and the native binary's --version banner is populated from the injected ldflags. Homebrew tap deferred (add a brews: block when wanted).
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.
What
Add prebuilt-binary distribution so StarCLI installs without a Go toolchain — the v0.1.0 cost-price audit's top P1 and the biggest adoption barrier (today it's
go installonly, needing Go 1.25)..goreleaser.yaml— builds linux / darwin / windows × amd64 / arm64 withCGO_ENABLED=0(modernc/sqlite is pure Go, so the whole binary is static and cross-compiles),-trimpath+ the same version ldflags the Makefile injects (packageconfig),tar.gzarchives (zipon Windows), checksums, GitHub release..github/workflows/release.yml— on avX.Y.Ztag, run GoReleaser. The third-partygoreleaser-actionis pinned to a full commit SHA (v7.2.2, supply-chain policy)..gitignore— track.goreleaser.yaml(the root/*.yamlrule was hiding it).Safety / how releases happen
Verified locally
goreleaser checkpasses.goreleaser release --snapshot --cleanbuilds all six platform archives + checksums; the native binary's--versionbanner is correctly populated from the injected ldflags.Homebrew tap deferred (add a
brews:block when wanted). Tracks STAR-53 P1 (distribution).