-
Notifications
You must be signed in to change notification settings - Fork 833
Build arm64 binaries and packages #4211
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
Build arm64 binaries and packages #4211
Conversation
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
It doesn't work on GHA. Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
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.
Excellent work! I tested the commands and just found a minor issue.
Makefile
Outdated
sha256sum ./dist/cortex-$$os-$$arch | cut -d ' ' -f 1 > ./dist/cortex-$$os-$$arch-sha-256; \ | ||
echo "Building query-tee for $$os/$$arch"; \ | ||
GOOS=$$os GOARCH=$$arch CGO_ENABLED=0 go build $(GO_FLAGS) -o ./dist/query-tee-$$os-$$arch ./cmd/query-tee; \ | ||
sha256sum ./dist/query-tee-$$os-$$arch | cut -d ' ' -f 1 > ./dist/cortex-$$os-$$arch-sha-256; \ |
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.
sha256sum ./dist/query-tee-$$os-$$arch | cut -d ' ' -f 1 > ./dist/cortex-$$os-$$arch-sha-256; \ | |
sha256sum ./dist/query-tee-$$os-$$arch | cut -d ' ' -f 1 > ./dist/query-tee-$$os-$$arch-sha-256; \ |
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.
Whoops, good catch! Thanks.
Signed-off-by: Peter Štibraný <[email protected]>
* Build arm64 binaries. Signed-off-by: Peter Štibraný <[email protected]> * Build also deb/rpm packages for arm64, and test them. Signed-off-by: Peter Štibraný <[email protected]> * Don't use --platform when building docker images. It doesn't work on GHA. Signed-off-by: Peter Štibraný <[email protected]> * Fixes Signed-off-by: Peter Štibraný <[email protected]> * Fixes Signed-off-by: Peter Štibraný <[email protected]> * Fixes Signed-off-by: Peter Štibraný <[email protected]> * Remove tabs. Signed-off-by: Peter Štibraný <[email protected]> * Remove unused tags. Signed-off-by: Peter Štibraný <[email protected]> * Added comment. Signed-off-by: Peter Štibraný <[email protected]> * Don't build packages during all build. Signed-off-by: Peter Štibraný <[email protected]> * Remove unused PACKAGES var. Signed-off-by: Peter Štibraný <[email protected]> * Fix digest name. Signed-off-by: Peter Štibraný <[email protected]> Signed-off-by: Albert <[email protected]>
What this PR does: This PR adds support for building arm64 binary when running
make dist
(for linux and macos), and also deb/rpm packages for linux/arm64 when runningmake packages; make test-packages
.Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]