-
Notifications
You must be signed in to change notification settings - Fork 246
feat: add goreleaser for prebuilt binaries #1682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe recent updates streamlined the CI/CD process by removing redundant jobs, integrating Goreleaser for automated Go project releases, and refining the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Outside diff range and nitpick comments (1)
.goreleaser.yaml (1)
35-44: Review the archive name template for compatibility.The name template uses system architecture and OS, which is good. However, ensure that this naming convention fits well with your deployment and distribution strategies.
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- .github/workflows/ci_release.yml (3 hunks)
- .github/workflows/goreleaser.yml (1 hunks)
- .gitignore (1 hunks)
- .goreleaser.yaml (1 hunks)
- Makefile (2 hunks)
Files skipped from review due to trivial changes (3)
- .github/workflows/ci_release.yml
- .github/workflows/goreleaser.yml
- .gitignore
Additional comments not posted (4)
.goreleaser.yaml (3)
5-5: Ensurego mod tidyis sufficient for your pre-build hook.This hook cleans up the modules by removing unnecessary dependencies. Verify if additional steps like
go mod verifymight be beneficial to ensure module integrity.
7-33: Configuration for builds looks comprehensive and well-documented.The use of environment variables and ldflags is correctly implemented. The distribution path is also appropriately set.
46-56: Good use of checksums and git settings.Checksum generation for file integrity and the use of a pre-release suffix in git configurations are best practices that enhance the reliability of the release process.
Makefile (1)
3-4: Addition ofPACKAGE_NAMEandGOLANG_CROSS_VERSIONvariables.These variables are well-defined and crucial for the new
prebuilt-binarytarget. Ensure they are documented in the Makefile or an associated README.
yarikbratashchuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm 👍
Overview
Closes #1683
This PR copies over how celestia-app has implemented the goreleaser.
The goreleaser CI calls a makefile command so that in the event the CI fails, we can manually trigger the builds.
Tested on a temp repo:
https://github.com/MSevey/rollkit-temp/actions/workflows/goreleaser.yml
https://github.com/MSevey/rollkit-temp/releases
Summary by CodeRabbit
Chores
.gitignoreto exclude.envand.*envfiles.New Features