Cross Compiling automatically to OSX?

The answer got longer and off topic, so moved here:
Invalid memory access on Alpine