jameslittle230 / stork

🔎 Impossibly fast web search, made for static sites.
https://stork-search.net
Apache License 2.0
2.73k stars 56 forks source link

Build & publish Mac ARM binary upon new release #327

Open justinmayer opened 1 year ago

justinmayer commented 1 year ago

As far as I can tell, the current release workflow only publishes an Intel Mac binary (macos-10.15) that cannot be used on Mac systems powered by Apple Silicon (M1/M2) processors.

As of this writing (2023-01-01), Mac ARM64 appears to be supported via GitHub Actions, but GitHub does not seem to offer Mac ARM64 as a built-in runner type — developers must self-host their own Mac ARM64 runners. Related links:

So, as of this moment, I am not sure if there is an easy way to automatically publish Mac ARM64 binaries when new releases are tagged. If not, at least we can track this endeavor and its eventual implementation via this issue. ✨

jameslittle230 commented 1 year ago

Thanks for opening the issue. While I can't use Github Actions to automate an arm64 build process, I do have an arm64 Mac and can use that to create compatible binaries.

I've uploaded https://files.stork-search.net/releases/v1.6.0/stork-macos-13-arm to the Stork CDN, and uploaded stork-macos-13-arm to the 1.6.0 release. Let me know if you're having any issues with the binary!

I'll commit to uploading an arm64 binary to this and all future Stork releases. [Edit: Except alpha/beta/RC releases - those move too quickly for me to upload non-automatic binaries. Sorry.]