tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
938 stars 83 forks source link

Use Nix platform identifiers for release binaries #1108

Closed amesgen closed 1 month ago

amesgen commented 2 months ago

Recently, macos-latest switched from macos-12 (x86_64) to macos-14 (aarch64, i.e. M1 ARM). The current code for building a macOS release binary only works for x86_64-darwin. This PR fixes that (allowing to also build on aarch64-darwin), and also renames the release artifacts from

to the more precise

See https://github.com/amesgen/ormolu/releases/tag/test-release-new for an example release with this new code.

Also, we now properly sign the macOS binaries, as running aarch64-darwin binaries requires that.

github-actions[bot] commented 2 months ago

🚀 Deployed on https://140c0a6754ae1d87f4fc79e4ddbdfd63edf18f1c--ormolu-live.netlify.app

mrkkrp commented 1 month ago

Looks great, thanks!