Repository navigation
Publish Linux and macOS release binaries from version tags - #112
Merged
Merged
Conversation
Cross-compile amd64 and arm64 on a GitHub-hosted runner so a version tag can attach checksums and binaries to the release.
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The workflow safely validates tags, builds all requested targets, verifies assets, and limits publishing to tag pushes.
Review effort: Balanced
Findings: None
What changed in this PR
Adds automated release publishing for issue #41, providing Linux and macOS binaries for Intel and Arm architectures.
Changes:
- Builds four binaries from validated version tags.
- Publishes binaries and SHA-256 checksums to GitHub Releases.
- Documents release naming and supported architectures.
| File | Description |
|---|---|
.github/workflows/release.yml |
Builds, validates, checksums, and publishes release assets. |
README.md |
Documents release workflow and asset names. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
vMAJOR.MINOR.PATCHtags (optional pre-release suffix). A GitHub-hosted runner cross-compiles ValidGen for Linux and macOS, Intel (amd64) and Arm (arm64), writesSHA256SUMS, and attaches those files to the GitHub release for that tag.Fixes #41
Test plan
actions/checkout@v4andactions/setup-go@v4.v1.2.3andv1.2.3-rc.1, and rejects path or shell metacharacters.go buildfor linux/amd64, linux/arm64, darwin/amd64, and darwin/arm64 withCGO_ENABLED=0.fileconfirms ELF and Mach-O. Only the host linux/amd64 binary was executed.buildon this pull requestRelease review
contents: writesoghcan create or update the release. The token isgithub.token. There is nopull_requesttrigger, so a pull request cannot publish.--verify-tagaborts if the version tag is not already on the remote, so the job does not create a tag frommain.dist/validgen_<tag>_{linux,darwin}_{amd64,arm64}plusdist/SHA256SUMS. The tag must matchvMAJOR.MINOR.PATCHwith an optional dot, plus, or hyphen suffix before it is used in a path. The upload list is those five files, not a directory glob.