rnp icon indicating copy to clipboard operation
rnp copied to clipboard

Support macOS Big Sur on Mac M1

Open ronaldtse opened this issue 4 years ago • 11 comments

We should support M1 running of RNP. This will be a need for TB as well.

Ping @dewyatt @ni4

Here's a document that describes installation of Homebrew on M1: https://github.com/mikelxc/Workarounds-for-ARM-mac

ronaldtse avatar Nov 30 '20 06:11 ronaldtse

Wondering whether GHA would support ARM CPUs (or whether it is technically possible at all?).

@ronaldtse Btw, shouldn't we try again to add homebrew formula for the rnp?

ni4 avatar Nov 30 '20 10:11 ni4

Wondering whether GHA would support ARM CPUs (or whether it is technically possible at all?).

I hope they will? They probably should.

@ronaldtse Btw, shouldn't we try again to add homebrew formula for the rnp?

Yes we absolutely should! Could you help with it?

ronaldtse avatar Nov 30 '20 10:11 ronaldtse

Yes we absolutely should! Could you help with it?

Ok, sure.

ni4 avatar Nov 30 '20 10:11 ni4

@ronaldtse Looks like we don't have enough watchers at the moment - in January homebrew required 30 watchers. And probably it would be good to (finally) release 0.14 and then try to add it to the homebrew, what do you think?

ni4 avatar Nov 30 '20 11:11 ni4

@ni4 interesting we have more stars and forks than watchers... yeah let's wait for a bit then.

ronaldtse avatar Nov 30 '20 12:11 ronaldtse

Waiting for https://github.com/actions/virtual-environments/issues/2187 .

  • Apparently GitHub is looking into this for 2022... (https://github.com/actions/virtual-environments/issues/2187#issuecomment-939033228)
  • GitHub runners depend on the latest dot-NET release that will include M1 support, estimated release tomorrow (Nov 9, 2021: https://github.com/actions/runner/issues/805#issuecomment-956193568)

ronaldtse avatar Nov 08 '21 02:11 ronaldtse

It is also possible to cross-compile from Intel:

  • https://stackoverflow.com/questions/65361672/build-apple-silicon-binary-on-intel-machine

ronaldtse avatar Dec 17 '21 15:12 ronaldtse

I can take a look at this after the v0.16.0 release. Given that I recompiled macOS Objective-C apps (including some frameworks) for the x64/arm64 binary year ago don't see what can go wrong with rnp dylib.

ni4 avatar Dec 17 '21 15:12 ni4

Thanks @ni4 !

ronaldtse avatar Dec 17 '21 15:12 ronaldtse

This is definitely possible via CMAKE_OSX_ARCHITECTURES , however that would need to build Botan/JSON-C with two architectures as well.

ni4 avatar Jan 18 '22 14:01 ni4

@ronaldtse Given that GitHub now has macOS runners or arm/M1, I guess we could close this issue? Or should we wait till rnp is included to homebrew?

ni4 avatar Apr 25 '24 13:04 ni4