discord / lilliput

Resize images and animated GIFs in Go
https://discord.com/blog/how-discord-resizes-150-million-images-every-day-with-go-and-c
Other
1.94k stars 124 forks source link

Add support for macOS on Apple Silicon #164

Open acj opened 1 month ago

acj commented 1 month ago

As discussed in #157, this PR contributes the following:

  1. Adds dependencies built for macOS on ARM / Apple Silicon
  2. Removes dependencies built for macOS on Intel x86_64
  3. Adds GitHub Actions CI workflows for building the dependencies and for building and testing Lilliput itself
  4. Fixes several issues that were breaking the build on macOS and Linux

I tried to break things up into small commits for easier review. The last ~5 commits are the key changes -- adding arm64 support, adding CI, and rebuilding the dependencies. The rest are fixes for the build.

If you'd like me to make a separate PR for the CI stuff, I'm happy to do that. There's a test run of the main CI workflow here and one for the dependency workflow here.

Happy to talk through any questions or concerns. Thanks!

Resolves #157. Resolves #138. Resolves #139.