Skip to content
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

Merged
merged 13 commits into from
Feb 27, 2024
Merged

Add Apple M1 support #355

merged 13 commits into from
Feb 27, 2024

Conversation

ducaale
Copy link
Owner

@ducaale ducaale commented Feb 24, 2024

This PR also:

  • Updates both actions/checkout and Swatinem/rust-cache to latest version
  • Removes any unmaintained github actions:
    • actions-rs/toolchaindtolnay/rust-toolchain
    • actions-rs/cargoClementTsang/cargo-action

Resolves #302

@ducaale ducaale marked this pull request as draft February 24, 2024 20:15
@ducaale ducaale marked this pull request as ready for review February 24, 2024 22:53
@ducaale
Copy link
Owner Author

ducaale commented Feb 24, 2024

Note: I have tested the release workflow using https://github.com/ducaale/xh-m1-test

@ducaale ducaale requested a review from blyxxyz February 24, 2024 22:59
Copy link
Collaborator

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

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.

Copy link
Owner Author

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.

@ducaale ducaale merged commit f50f10c into master Feb 27, 2024
9 checks passed
@ducaale ducaale deleted the add-apple-m1-support branch February 27, 2024 21:49
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 aarch64-apple-darwin to GitHub Actions
2 participants