PROD-3069: Cross-compile self contained binaries #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Although we managed to generate binaries for multiple architectures on #6, we still had plenty opportunities of improvement like:
What
By switching from
OpenSSL
intorustls
from one of the dependencies, we were able to move from glibc into musl. By using the latter C standard library the rust compiler is able to build self contained binaries.Extra
The real changes are on the
Cargo.toml
and the.github/workflows/wc_buid_binaries.yml
files, the rest is code grooming.By the way, with taking the chipset emulation out of the picture we reduced the cross-build time from ~30 minute to ~7 minutes 🎉🎉🎉