Skip to content

Fallback to x86-64 release when macOS ARM 64-bit build not available #223

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
May 2, 2022
Merged

Fallback to x86-64 release when macOS ARM 64-bit build not available #223

merged 1 commit into from
May 2, 2022

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Apr 20, 2022

Apple's Rosetta 2 allows applications built for x86-64 hosts to run on machines using their ARM 64-bit M1 processor.

Due to current infrastructure challenges (e.g., lack of GitHub-hosted GitHub Actions runners), Arduino's applications may not yet be available as native M1 builds, yet the existing macOS x86-64 builds work perfectly well on these machines thanks to Rosetta 2.

The installation script previously failed to install these applications when ran on the M1 host (#207):

Did not find a release for your system: macOS arm64

In order to facilitate review, I'll attach a copy of the version of the "template" script from this PR which has been configured to install Arduino CLI:

install.zip


Fixes #207

Apple's Rosetta 2 software allows applications built for x86-64 hosts to run on machines using their ARM 64-bit M1
processor.

Due to current infrastructure challenges (e.g., lack of GitHub-hosted GitHub Actions runners), Arduino's applications
may not yet be available as native M1 builds, yet the existing macOS x86-64 builds work perfectly well on these machines
thanks to Rosetta 2.

The installation script previously failed to install these applications when ran on the M1 host:

Did not find a release for your system: macOS arm64
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Apr 20, 2022
@per1234 per1234 requested review from ubidefeo and umbynos April 20, 2022 16:46
@per1234 per1234 self-assigned this Apr 20, 2022
@per1234 per1234 requested a review from cmaglie April 29, 2022 07:41
Copy link

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

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

tested the script with success
LGTM

@per1234 per1234 merged commit 3c5897d into arduino:main May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Template" installation script does not consider M1 compatibility via Rosetta 2
2 participants