Skip to content
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

[Request] Precompiled Binary for Apple Silicon #103

Closed
luxus opened this issue May 15, 2021 · 6 comments
Closed

[Request] Precompiled Binary for Apple Silicon #103

luxus opened this issue May 15, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@luxus
Copy link

luxus commented May 15, 2021

hello,
I just found out about this tool and tried it on my Mac m1
the brew install doesn't install a arm64 version and is not usable because it will try to run brew in rosetta2
is it possible to add a arm64 version?
I was able to compile it from git source, but it would be easier to do it with brew

@rami3l
Copy link
Owner

rami3l commented May 15, 2021

Thanks for your advice!

Sorry for the inconvenience, but since the binaries in GitHub Releases are tested and compiled using GitHub Actions, which doesn't support ARM Macs (yet), it's still impossible to simply add an ARM macOS binary in the release. However, I'm willing to do exactly that once it can be easily done. (If I'm missing something, please tell me!)

I sadly don't have an ARM Mac to test with, but it's really nice to know that pacaptr is working for you. Stay tuned :)

@luxus
Copy link
Author

luxus commented May 15, 2021

thanks for answering so quickly.. i wonder why so many other terminal tools have a arm version in brew.
for example:
https://formulae.brew.sh/formula/ripgrep
brew install ripgrep installs arm versions
but there are no arm releases on git https://github.com/BurntSushi/ripgrep/releases/tag/12.1.1

@rami3l
Copy link
Owner

rami3l commented May 15, 2021

@luxus I think that's because Homebrew officially owns some M1 machines to compile bottles in ARM, but that's not generally possible for formulae in non-official taps right now.

@rami3l rami3l changed the title brew arm64 binary for apple silicon [Feature Request] brew arm64 binary for apple silicon May 15, 2021
@rami3l rami3l changed the title [Feature Request] brew arm64 binary for apple silicon [Request] Apple Silicon Binary Distribution May 15, 2021
@rami3l rami3l added the enhancement New feature or request label May 15, 2021
@rami3l rami3l changed the title [Request] Apple Silicon Binary Distribution [Request] Precompiled Binary for Apple Silicon May 19, 2021
@rami3l
Copy link
Owner

rami3l commented Jun 11, 2021

@luxus It turns out that we might be able to cross-compile for Apple Silicon once GitHub Actions official x64 instances get their Big Sur update. However, this is currently blocked by
actions/runner-images#2486.

Update: It seems that a workaround has been found here. I'll investigate further into this issue.

Update: I tried to implement the right xtask but got stuck by a block of ICE from rust-lang/rust#56935 :(

Update: This issue has been worked around by macro_rules_attribute in v0.0.2.

@rami3l
Copy link
Owner

rami3l commented Jun 11, 2021

@luxus I made a test build in v0.12.0-TEST002. Would you mind testing for me if pacaptr-macos-universal works on your M1 machine as expected?

Warning: A security alert might pop up. Let's see if you can get rid of it by going to System Preferences -> Security & Privacy -> General.

Security Alert

@luxus
Copy link
Author

luxus commented Jun 11, 2021

it works... thanks for handling all the trouble I got you with this request
I didn't get the popup.. it can be fixed by secondary click and "open" as well if I remember correctly

@luxus luxus closed this as completed Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants