-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add fast multi-platform build #389
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, super happy we got it working with the binary-based approach
Converted to draft because there is an |
ssz_rs = { git = "https://github.com/ralexstokes/ssz-rs", rev = "ec3073e", features = [ | ||
"sha2-asm", | ||
] } | ||
ssz_rs = { git = "https://github.com/ralexstokes/ssz-rs", rev = "ec3073e" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to remove the ssz-rs sha2-asm
feature as it was breaking for cross-compiled aarch64
.
There might be a way to do it but for now I had to disable it
Images tagged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🫡
This PR adds support for building cross-platform binaries for
x86_64
andaarch64
(unknown-linux-gnu
).We use cargo cross to produce a separate release binary for each architecture and successively load it
into a docker image directly.
Benefits:
Downsides:
Usage
Available packages that can be built from this repo (so far):
bolt-sidecar
,bolt-boost
.Example to produce a cross-platform image with tag
unstable
:Example to produce cross-platform images for all available packages mentioned above with tag
unstable
:Requisites to build images
cargo
cross
docker buildx