-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
M1 or universal releases for Darwin #1015
Comments
By the way, I'm happy to try out a pull request to do this, but wanted to check to make sure this wasn't already in the works, and whether you'd prefer an aarch64 release vs universal. I have not yet succeeded in my own homebrew taps to install a different tarball depending on architecture. |
It is not in the works and I would love a pull request for it! I have an M1 myself and just been suffering through. |
How about I start with the M1 build on its own? That shouldn't be too difficult, and if it's something you can drop into your homebrew bottle then fine, otherwise my next iteration would be a universal binary. |
Sounds great! |
That shouldn't be too difficult... 🤦♂️ Current status, trying to build for M1 on an Intel Mac:
|
Jinxed it! I have dropped a message over on the homebrew forums on how to do this, last time I dug into this it was prohibatively hard, but I would love to make it happen Edit: I am an idiot and didn't read that you had installed this via cargo. It is already possible for you to install this via my homebrew tap it will just build it for you |
I've also added m1 builds to the binaries we build on release in the releases page, however homebrew does not use these, and are built by the tap repo. |
I think this is stuck on 1) having an M1 host for GitHub actions, or 2) successfully cross-compiling rust's openssl package with an aarch64 target from a x86_64 host. Point 1 might be solved with a self-hosted runner until it's officially supported. The GitHub action self-hosted runner agent requires Rosetta 2, which I've been stubbornly refusing to install on any of my computers. I played around with running virtualized M1 MacOS from an M1 Mac mini, to see if maybe that would be a way to keep a clean host. It seems possible, but would take a bit of work. I played around with cross-compilation without success. I don't see anyone else successfully solving the problem described in the error I posted above, but maybe with a deeper dive into the openssl / openssl-sys crate it might be possible? |
I currently install
git-mit
viacargo
, which means that every time I update my installed Rust version I need to look up the install directions again. This is not a huge problem, but it would be nice to be able to install via your homebrew tap.It's possible to build a
aarch64-apple-darwin
target. At least on a Mac, one can uselipo
to combine two arch-specific binaries into a universal package.It looks to me like this repo ports
lipo
to Linux.I'm not sure yet what the level of effort of getting this into your workflow would be, so I thought I'd start with an issue.
Describe the solution you'd like
A binary install of git-mit on M1 Macs.
Describe alternatives you've considered
I can keep installing via cargo.
The text was updated successfully, but these errors were encountered: