ci: automate release artifact builds via GitHub Actions#3
Open
DTTerastar wants to merge 1 commit into
Open
Conversation
The release process documented in BUILD.md was fully manual: tag, push, run `make build-all` locally, zip each binary, and upload via the web UI. This step was skipped for v2.0.3, leaving the release with no artifacts. Automate the same steps so every `v*` tag publishes the six platform archives (linux amd64/arm64, darwin amd64/arm64/universal, windows amd64) plus a SHA256SUMS.txt. Uses a macOS runner because `lipo` is required for the darwin-universal binary; Go cross-compiles the other targets. Archive names and internal binary names match the v2.0.2 release exactly so existing install scripts and download URLs keep working.
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/release.yml, which builds and uploads the six platform archives plus aSHA256SUMS.txton everyv*tag push.macos-latestbecauselipois required forsplunk-cli-darwin-universal; Go cross-compiles the other platforms from the same runner.Motivation
The release process documented in
BUILD.mdis fully manual: tag, push, runmake build-alllocally, zip each binary, and upload via the web UI. That step was missed for v2.0.3 — the release ships with zero artifacts, so anyone trying to pick up the Windows/NTFS permission-check fix has to build from source.Automating it removes the foot-gun and means future releases can't accidentally ship empty.
Recovering v2.0.3
Once this is merged, the simplest way to repair v2.0.3 is to delete and re-push the tag:
That triggers the workflow and attaches the six archives to the existing release.
Test plan
main, then push a throwaway tag (e.g.v2.0.3-rc1) to confirm the workflow attaches all six archives +SHA256SUMS.txt.splunk-cli-<os>-<arch>, orsplunk-cli-windows-amd64.exe).v2.0.3to restore its artifacts.🤖 Generated with Claude Code