Skip to content
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

Optimized AArch64 executables #638

Merged
merged 2 commits into from Jun 28, 2022
Merged

Optimized AArch64 executables #638

merged 2 commits into from Jun 28, 2022

Conversation

nazar-pc
Copy link
Member

@nazar-pc nazar-pc commented Jun 28, 2022

This switches from debug AArch64 Linux builds that took 2.5 hours for farmer and 5.5 hours for node to production optimized builds that take 25 minutes to build for farmer and 50 minutes for node, cutting time for release publishing significantly 🎉

This also makes all builds compile Rust's standard library as part of the build. Was only necessary for cross-compilation as standard library wasn't available for this target (might be just one rustc build, but still), but I decided to switch to that everywhere for consistency.

Workflow run: https://github.com/subspace/subspace/actions/runs/2573340931

@nazar-pc nazar-pc requested a review from i1i1 June 28, 2022 02:13
@nazar-pc nazar-pc requested a review from rg3l3dr as a code owner June 28, 2022 02:13
# Build at least something for aarch64 that doesn't exceed CI's time limit
profile: dev
# We build AArch64
- arch: linux/amd64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the reason that this is not arm64 if we are using this for aarch64 builds?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was it faster to use amd64 instead of arm64? I remember that cross-compilation was surprisingly fast :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the rest of the changes, we use cross-compilation instead of virtualization now

Base automatically changed from separate-opencl-farmer-executable to main June 28, 2022 16:05
@nazar-pc nazar-pc merged commit c83f3b2 into main Jun 28, 2022
@nazar-pc nazar-pc deleted the optimized-aarch64-executables branch June 28, 2022 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants