ci: add CI + release workflows (GoReleaser)#32
Merged
Conversation
GoReleaser-based design: ci.yml gates PRs/main with vet/test/build/goreleaser-check; release.yml fires on v* tags and produces linux/amd64, linux/arm64, darwin/arm64 binaries with version/commit/date injected via ldflags. cmd/version.go switches from a hardcoded string to overridable package-level vars.
- ci.yml: cancel-in-progress for stale PR runs, 15-min job timeout - release.yml: 30-min job timeout to cap the default 6h ceiling
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.
Summary
.github/workflows/ci.yml— runsgo vet,go test,go build, andgoreleaser checkon PRs and pushes tomain. Least-privilege permissions, concurrency cancellation, 15-min timeout..github/workflows/release.yml— fires onv*SemVer tags; runs GoReleaser to build + publish a GitHub Release..goreleaser.yaml— buildslinux/amd64,linux/arm64,darwin/arm64with version/commit/date injected via ldflags; archives astar.gz, includes sha256 checksums, and generates a grouped changelog from git.cmd/version.goswitched from a hardcoded string to overridable package-level vars; adds aPersistentPreRunEno-op soesp versionruns without AWS env vars.Spec:
docs/superpowers/specs/2026-05-15-github-release-workflow-design.mdPlan:
docs/superpowers/plans/2026-05-16-github-release-workflow.mdTest plan
v0.0.0-test.1) to exercise the release workflow end-to-end, verify the produced Release contains 3 archives + checksums.txt, then delete the test release/tag before the first real release