Cross-compiling a static binary from GitHub Actions

Vladimir Panteleev thecybershadow.lists at gmail.com
Sat Sep 25 18:31:27 UTC 2021


On Saturday, 25 September 2021 at 16:28:16 UTC, kinke wrote:
> On Saturday, 25 September 2021 at 16:23:09 UTC, Vladimir 
> Panteleev wrote:
>> That's interesting, thanks - though I'm not sure why it would 
>> be considered more flexible, as it would create a rather 
>> strong dependency on a third-party service with a tumultuous 
>> track record :)
>
> Flexible as in being able to run any unittests, install a 
> native musl toolchain etc., plus I'd expect stuff like 
> `-L-l:libtermcap.a` to work there as well (i.e., static libs 
> being available just like on an x64 image).

Got it. I guess some qemu-based setup would achieve the same 
thing (with a LOT more fiddling up front).

Speaking of, I found this crazy wizardry which looks quite 
interesting:

https://github.com/multiarch/qemu-user-static


More information about the digitalmars-d-ldc mailing list