Closed chshersh closed 1 year ago
*-unknown-linux-musl*
except for mips uses static-linking by default, so (basically) you only need to specify the *-unknown-linux-musl*
target.
See also cross-compilation example.
@taiki-e Thanks a lot for the quick response! This is exactly what I was looking for š
First of all, thanks a lot for working on this GitHub Action! šš» It's amazing how smoothly it works š¤Æ I was able to configure binary releases with GitHub Actions in a matter of minutes and everything worked even better than I expected.
When creating a release of my tool, I've noticed that the asset has name
tool-x86_64-unknown-linux-gnu.tar.gz
and that the binary is actually dynamically linked:Is there a way to create statically linked binaries with musl?
Here is my release workflow:
I've noticed an example usage of
musl
in the following repository:But I'm not quite sure how it works š¤ Could you explain how can I use this workflow to link my binary statically?
Thanks a lot! šš»