-
Notifications
You must be signed in to change notification settings - Fork 889
feat: Automate releases with goreleaser #404
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
Codecov Report
@@ Coverage Diff @@
## main #404 +/- ##
==========================================
+ Coverage 66.02% 68.33% +2.31%
==========================================
Files 71 158 +87
Lines 774 9228 +8454
Branches 73 73
==========================================
+ Hits 511 6306 +5795
- Misses 249 2301 +2052
- Partials 14 621 +607
Continue to review full report at Codecov.
|
# The "trimprefix" appends ".exe" on Windows. | ||
post: | | ||
cp {{.Path}} site/out/bin/coder_{{ .Os }}_{{ .Arch }}{{ trimprefix .Name "coder" }} |
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.
Neato 👍
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.
This is one of my favorite features of go
, that we can bundle all the platforms up into a single fat binary. Cool idea!
This bundles coder, coderd, and provisionerd inside a single binary:
coder
. The size is ~180MB for the fat version, which doesn't seem terrible. If the size turns out to be a burden, we can always ship the slim version, which doesn't package any additional assets. It's so large because it contains Coder binaries for multiple platforms for agents to run.Developers on Mac, Windows, and Linux can install Coder and fully test it out before committing to a production installation. This enables tinkering like never before!