-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 macOS ARM builds to CI #4727
Conversation
The reason for the failing |
@christophwitzko Thanks a lot for letting me know, that is very helpful. I'd personally much prefer if |
@chrisduerr I agree 👍 |
hi, i'm looking forward to this! So I tried to build it myself, but ran into this issue:
Not sure if I'm being dense and didn't install something properly; I have XCode 12.4 installed and am on the latest beta release of Mac OSX, on an M1 Macbook Air. Is there something extra that needs to happen for builds to work? After looking around a bit on the web, i was wondering if this issue is relevant: ronaldoussoren/pyobjc#309 Anyway, thanks and hope for this to get in sometime :) |
Update, I happened to switch to a different laptop and for some reason it worked when I did exactly the same thing here. Maybe something was weird about my environment lol |
Hi, I'm following the instructions in the changes here trying to compile for M1 Mac, but when I launch the built application, Is there anything I need to do to tell the universal app to run the ARM version? |
Are you sure those two commands are referring to the alacritty process and not e.g. your shell? You should be aware of the structure of processes' arm-ish-ness. Each can be running natively or under Rosetta, but also has a "arch preference for new child processes" which is either inherited or forced with the arch command. If any parent process of alacritty is run under Rosetta without forcing the preference back, then alacritty will run under Rosetta. If any process between alacritty and your shell is default Rosetta then so is your shell. Etc. Look at Activity Monitor, view all processes hierarchically, show the arch column, look at the tree involving the shell and alacritty. For example you can have a setup as weird as this:
|
@cormacrelf actually, it was my mistake, sorry about that. I was in tmux and when I restarted the tmux server it started reporting correctly, since I had started it the first time from an x86 terminal emulator. |
Any updates on getting m1/arm version? |
ARM version for macOS will be made available as soon as GitHub has proper support for it. So asking for updates here is useless, since I can't do anything about that. |
Thanks so much for your time and effort @chrisduerr. Is it though possible to build an arm version from source? |
Nothing should prevent you from building an ARM version from source. |
If you are interested in potentially getting earlier access to the macOS 11 runner, it looks like they're accepting requests via a form. actions/runner-images#2486 (comment) |
In the meantime, here's an apple-silicon native binary I compiled myself |
@shaunsingh kind enough to recompile for macOS 11.x please? Right now it's targeted for 12. <3 |
@khoi Tells me it's damaged. |
Looks like macOS 11 virtual environments will be opening to the public sometime next week: actions/runner-images#2486 (comment) |
For those who want to use this but aren't sure about the steps, here they are. First, install
Then run the following to build Alacritty (edit to your liking, please notice it's cloning the repo). It should take a couple minutes total.
There you go, Alacritty is now on your Applications folder. |
Since the arm_ci branch is a few months outdated now, I would recommend
That way you can get a universal binary with all the latest fixes from |
Thanks @shaunsingh My approach:
|
Even better! I should learn github comments sometime soon |
@mhanberg Thanks for the heads-up. Was expecting the linked issue to get updated but this works too. |
Seems that since it is merged now, the steps that worked for me were:
Thank you all! |
@diegodorado those steps work great, thanks! Looking forward to the next official release with the universal app. |
Update: Holy crap M1 Max flies at compiling rust even compared to Ryzen 5950X, built app in under one minute. Not sure if having run |
Building from source worked for me! Curious if anyone knows about getting the M1 builds here into Homebrew? I'm definitely a bit past my skis to know if it's possible to support the multiple architectures in the brew formula. |
Will likely be in homebrew once 0.10.0 is released. Which should be pretty soon-ish. |
The image from release page should work. In homebrew it's under cask. If you want to build from source ensure that you have toolchain installed with the standard library, since it seems like it's missing. The target is |
I downloaded it with Homebrew under cask. @kchibisov Thank you so much! |
No description provided.