rami3l/pacaptr

[Request] Precompiled Binary for Apple Silicon

luxus opened this issue · 6 comments

luxus commented

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

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 commented

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

@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.

@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.

@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 commented

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