-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add Apple M1 support #355
Add Apple M1 support #355
Conversation
Note: I have tested the release workflow using https://github.com/ducaale/xh-m1-test |
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.
Looks good! I don't own a mac but the x86_64 Linux and Debian release artifacts work as expected.
@@ -4,6 +4,8 @@ set -e | |||
|
|||
if [ "$(uname -s)" = "Darwin" ] && [ "$(uname -m)" = "x86_64" ]; then | |||
target="x86_64-apple-darwin" | |||
elif [ "$(uname -s)" = "Darwin" ] && [ "$(uname -m)" = "arm64" ]; then |
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 probably fine, but I'm surprised that this is arm64
on macOS and aarch64
on Linux.
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.
Yeah, I am not sure either. This StackOverflow answer links to an email thread where kernel devs are bikeshedding the architecture name. But besides that, I couldn't find a satisfactory answer.
This PR also:
actions/checkout
andSwatinem/rust-cache
to latest versionactions-rs/toolchain
→dtolnay/rust-toolchain
actions-rs/cargo
→ClementTsang/cargo-action
Resolves #302