Building static binaries from CI and publishing on github

I think I’ve seen some projects having CI build static binaries for users to download. Is that true? Where could I look to copy that setup?

Use trust:

Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows

2 Likes

There is such feature in sccache repo:

You can look at its travis and appveyor configs

1 Like

I tried with trust first, but I’ve hit roadblocks. It uses cross, which uses dockers, which don’t have some important tools inside them. It seems it’s way more powerful for compiling for different architectures etc. but also more limited in the common case.

I went with copying sccache and that was big success. I generated successfully a test release binaries for cargo-crev: https://github.com/dpc/crev/releases/tag/cargo-crev-v0.0.0-test-binary-release . Thank you very much for all help!