Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rgee0
Copy link
Contributor

@rgee0 rgee0 commented Sep 5, 2024

Adds binary compression via changes to makefile and the addition of a new hack script to preform the compression

Tested in local repo Actions:

go build
mkdir -p bin/
mkdir -p uploads/
rm -rf bin/kubetrim*
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X github.com/alexellis/kubetrim/pkg.Version= -X github.com/alexellis/kubetrim/pkg.GitCommit=0e65a100cd1c19f6[53](https://github.com/rgee0/kubetrim/actions/runs/10722512660/job/29733604009#step:4:54)dd120d3ee904acc2492cf0" -o bin/kubetrim
CGO_ENABLED=0 GOOS=darwin go build -ldflags "-s -w -X github.com/alexellis/kubetrim/pkg.Version= -X github.com/alexellis/kubetrim/pkg.GitCommit=0e65a100cd1c19f653dd120d3ee904acc2492cf0" -o bin/kubetrim-darwin
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -a -ldflags "-s -w -X github.com/alexellis/kubetrim/pkg.Version= -X github.com/alexellis/kubetrim/pkg.GitCommit=0e65a100cd1c19f653dd120d3ee904acc2492cf0" -o bin/kubetrim-darwin-arm64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X github.com/alexellis/kubetrim/pkg.Version= -X github.com/alexellis/kubetrim/pkg.GitCommit=0e65a100cd1c19f653dd120d3ee904acc2492cf0" -o bin/kubetrim-arm64
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X github.com/alexellis/kubetrim/pkg.Version= -X github.com/alexellis/kubetrim/pkg.GitCommit=0e65a100cd1c19f653dd120d3ee904acc2492cf0" -o bin/kubetrim.exe
./hack/compress.sh
kubetrim
kubetrim-arm64
kubetrim-darwin
kubetrim-darwin-arm64
kubetrim.exe
rm -rf uploads/*.sha256 && ./hack/hashgen.sh

Action exited green - https://github.com/rgee0/kubetrim/actions/runs/10722512660/job/29733604009

Released binaries: https://github.com/rgee0/kubetrim/releases

Closes #3

Signed-off-by: Richard Gee <[email protected]>
@derek derek bot added the new-contributor label Sep 5, 2024
@alexellis
Copy link
Owner

Could you do a release on your repo to check the files are uploaded as expected?

@rgee0 rgee0 changed the title add compression to binaries draft: add compression to binaries Sep 5, 2024
@rgee0
Copy link
Contributor Author

rgee0 commented Sep 5, 2024

@rgee0 rgee0 changed the title draft: add compression to binaries add compression to binaries Sep 5, 2024
Copy link
Owner

@alexellis alexellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexellis alexellis merged commit 5109a6f into alexellis:master Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compress release binaries

2 participants