nicolas-van / multirun

A minimalist init process designed for Docker
https://nicolas-van.github.io/multirun/
MIT License
182 stars 9 forks source link

Prebuilt arm64 binaries #12

Closed tpetry closed 2 years ago

tpetry commented 2 years ago

With more and more ARM computers now in use due to new Apple Silicon computers, it would be very nice to provide prebuilt amd64 and arm64 in github releases for easy docker container creation

blackandred commented 2 years ago

Exactly, also it would be nice to use this application in multiarch images.

nicolas-van commented 2 years ago

I completely agree.

Unfortunately it's easier said than done. I think the best solution nowadays would be to use cross-compilation with Clang, but my Makefile skills are quite insufficient to perform that task.

So if anyone could point a good tutorial on how to do it (or even better: a project already doing it in a Github Action) I would be grateful.

blackandred commented 2 years ago

As a DevOps I can help only with Github Actions at least. I don't have enough knowledge with C or Makefile unfortunately.

nicolas-van commented 2 years ago

I'm working on something in this branch: https://github.com/nicolas-van/multirun/tree/github-actions

Currently I was able to get something that works on an AWS t4g instance. It will still take some time to get it consolidated, notably because I still don't know how to handle Musl builds. But it's a start.

nicolas-van commented 2 years ago

OK, I got it mostly right.

Now comes the real fun part: testing the result ^^

nicolas-van commented 2 years ago

Ok, done. I even included Raspberry Pi and Mac OS X builds while I was at it.