Merged
Conversation
GoReleaser's native Bun support (v2.6+) handles cross-compilation, archiving, checksums, and GitHub release publishing in a single step, replacing the previous multi-job matrix build approach. - Add .goreleaser.yaml with builder: bun targeting 5 platforms - Enable universal_binaries for macOS (single binary for x64+arm64) - Simplify release.yml from 4 jobs to 3 (test + goreleaser + npm) - Update install.sh for GoReleaser's tar.gz archive naming convention https://claude.ai/code/session_01HAwDpSZhFrFiwouBFjqWRr
Add --version/-v flag that prints version and short commit hash.
GoReleaser passes these via --define at compile time using its
template variables ({{ .Version }}, {{ .ShortCommit }}).
When running from source, falls back to "ra dev".
https://claude.ai/code/session_01HAwDpSZhFrFiwouBFjqWRr
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
This PR migrates the release workflow from a custom multi-job build and release process to GoReleaser, a unified release automation tool. This simplifies the CI/CD pipeline and provides better cross-platform binary management.
Key Changes
buildjob that compiled binaries for 5 different targets (Linux x64/arm64, macOS x64/arm64, Windows x64) and consolidated into a singlegoreleaserjob.goreleaser.yamlconfiguration: New configuration file that defines:releasejob that downloaded artifacts, compressed them, and created checksums. GoReleaser handles all of this automaticallyinstall.shto work with GoReleaser's naming convention:ra-{os}-{arch}tora_{OS}_{ARCH}.{ext}formatcontents: writepermission at workflow level for GitHub release creationImplementation Details
--cleanflag to ensure fresh buildsubuntu-latestrunner instead of a matrix of different OS runnershttps://claude.ai/code/session_01HAwDpSZhFrFiwouBFjqWRr