-
Notifications
You must be signed in to change notification settings - Fork 889
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
Update build script to build ARM64 version on Apple Silicon machines #1918
Update build script to build ARM64 version on Apple Silicon machines #1918
Conversation
Since #1888 is not updated yet I am submitting this one for faster review |
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.
I dont have a mac but if this works for u, im fine with it
I have tested this on MacBook Pro (14-inch, 2021) |
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.
Not a mac user but code looks fine
Not very urgent but I have been using this updated script for building my own version for apple silicon |
0241e91
d11eca2
to
0241e91
Compare
0241e91
to
1277346
Compare
1277346
to
716c683
Compare
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 bussin
However this change does not enable building ARM64 version for Apple Silicon on GitHub Action (nor universal version) |
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.
Also don't have a Mac, but if this is working for you then I'm okay with it.
I'd like to have GitHub Actions create Apple Silicon builds, though IIRC they don't have the proper VMs required to build for it, so we can't offer it right now.
If / when GitHub Actions add support for Apple Silicon, then I'd be interested in starting to offer it.
As this PR is merged, #1888 can probably be closed now. |
Good catch! I've closed it. |
Pull Request Type
Please select what type of pull request this is:
Related issue
Extracted from #1888 in case that PR is not updated
Description
Build script run on MacOS would detect CPU type (name matching) and build binary with corresponding architecture
which is
x64
/arm64
Screenshots (if appropriate)
Running process of locally built binary:
Testing (for code that is not small enough to be easily understandable)
npm run build --if-present
Desktop (please complete the following information):
Additional context
This does not include build action update
GH runner does not support it yet