Skip to content

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

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

imeoer
Copy link
Collaborator

@imeoer imeoer commented Apr 27, 2022

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]

@imeoer imeoer force-pushed the nydus-arm64-release branch 2 times, most recently from 05a604e to 5276987 Compare April 27, 2022 04:01
@imeoer imeoer self-assigned this Apr 27, 2022
Copy link
Collaborator

@liubogithub liubogithub left a 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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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]>
@imeoer imeoer force-pushed the nydus-arm64-release branch from 5276987 to aedb0f5 Compare April 27, 2022 08:41
Copy link
Member

@bergwolf bergwolf left a comment

Choose a reason for hiding this comment

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

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add arm support for CI and release
4 participants