Open npmccallum opened 4 years ago
Any comments on this? Is this wanted, and just waiting for someone to implement it?
Yes, I would think so.
For building against musl libs statically it seems musl-tools
are required.
Right now I install them using this:
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: musl-tools # provides musl-gcc
version: 1.0
so, not and insurmountable problem, but still would be nice to have them out of the box with actions-rs
IMO.
Wait, so those musl tools would also allow cmake to cross compile for it with CMakePresets.json
as well right?
I found this issue when I need to be able to compile some C code in github actions for these presets:
Do the checklist before filing an issue:
actions-rs
Actions? If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community(I don't speak TypeScript...)
Motivation
When setting up the toolchain for any target that ends in
-linux-musl
, pleaseapt install musl-tools
as part of the toolchain setup. Rust dependencies that usecc
to compile C code will expectmusl-gcc
to be installed.Workflow example
No changes needed.
Additional context
musl-gcc
is a thin wrapper around GCC that sets things up for compilation on musl. Many Rust packages require it to be installed when building for anymusl
target.