-
Notifications
You must be signed in to change notification settings - Fork 230
action: support multiple arch releases #407
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
05a604e
to
5276987
Compare
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.
Otherwise looks OK.
Makefile
Outdated
current_dir := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
ARCH := $(shell uname -p) | ||
ARCH ?= $(shell uname -p) | ||
GOARCH ?= amd64 |
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.
Is this GOARCH
used anywhere?
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.
Thanks for pointing it out, fixed.
Add $ARCH to all cargo/go build commands for supporting multiple arch compilation. Use rust cross tool instead of clux/muslrust docker image to resolve cross compiling issue for arm64 arch. All the amd64 and arm64 binaries have been tested on separate machines and basically work well. Signed-off-by: Yan Song <[email protected]>
5276987
to
aedb0f5
Compare
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!
Add $ARCH to all cargo/go build commands for supporting multiple
arch compilation.
Use rust cross tool instead of clux/muslrust docker image to
resolve cross compiling issue for arm64 arch.
All the amd64 and arm64 binaries have been tested on separate
machines and basically work well.
A successful action can be found here: https://github.com/imeoer/image-service/actions/runs/2230520032
The macOS binary release support and removing clux/muslrust docker
image will as TODO next.
Close #401
Signed-off-by: Yan Song [email protected]