for an upcoming open-source project of mine, I want to supply binaries for all major desktop platforms, but at least Linux and OSX. This should be done through a CI-based process, which I can ideally host myself (e.g. with Drone / Docker).
As cross-compiling Crystal is not that easy as e.g. Golang, I am searching for ways to solve this. For compiling to OSX, the things I came across so far:
- Travis supports OSX builds. Is Crystal supported there as well? If yes, can you do OSX/Linux matrix builds in order to have one CI pipeline for everything? Also, I read that there might be long queueing times waiting for a build VM to become available.
- Circle CI has OSX support in its paid plans, which seems to be what the Crystal Core team is currently using for releasing builds. For a small open-source project, paying for CI is not an option though.
- There is the osxcross toolchain which might help compiling the
.ofile which gets output when cross-compiling with Crystal. (There is a ready-made Docker image which might help with this.)
Any more experiences? It would be really nice to have a ready-to-go solution for this.