-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Allow builds on M1 Macs #933
Conversation
The only thing preventing builds on M1 macs is failure in downloading `arduino-language-server`. While other downloads do not check the arch, it is checked here. Adding case for `darwin-arm64` fixes the issue.
Related: #666 |
@me-no-dev, thanks for the contribution. We're also working on it. With your patch, the build might correctly download the LS, but it does not fix the M1 build issue in the long run. If we want to build a native M1 app on M1, the
This 👆 shows that the M1 (arm64) IDE2 app strickly requires an arm64 CLI. It does not exist yet. |
@kittaakos agreed that this is not a long term solution, but was here to help ones that want to build on M1 currently :) Feel free to close |
Thank you so much ❤️
Let's leave it open. There is progress. We have some blockers, but we are working on the M1 support. Related: main...kittaakos:m1 |
Doesn't the CLI already use a recent version of GO that supports Apple Silicon? |
@umbynos, could you please chime in and summarize what is missing on the CLI/LS part? We do not yet have a container for Also, even if we can build the CLI on an M1 chip, it does not fit into the current GitHub Actions-based pipeline: actions/runner-images#2187. |
At the current time, we do not have a way of building the arduino-cli using golang crosscompile because we need the support for CGO on macOS to be able to reset a board when flashing it |
Now that this PR has been closed is it possible to develop a dedicated version for Apple Silicon? |
Hi @Edivad99, having a native Arduino CLI arm64 darwin build unfortunately was only a starting point. Some more action items are required. There are other binaries required by the ide to be able to run natively on M1:
|
For the time being, we could build it on M1 manually and upload the artifacts. I know this is suboptimal, but it could speed up things until we have all the workflows and pipelines running on an M1 container. |
any update on this? |
Status update:
|
everything done, releases here: |
Thank you for initiating the support of the M1 build. It was implemented in #1577. Closing this PR as a duplicate. |
Motivation
The only thing preventing builds on M1 macs is failure in downloading
arduino-language-server
. While other downloads do not check the arch, it is checked here. Adding case fordarwin-arm64
fixes the issue.Change description
Adds case for
darwin-arm64
Other information
None
Reviewer checklist