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

feat: build ARM and AMD in parallel #2130

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Conversation

mchristopher
Copy link
Member

Description

Building the ARM and AMD Docker images using native runners in parallel. This will greatly speed up the CI runtime.

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

@mchristopher mchristopher added the no changelog Skip the CI check of the changelog modification label Aug 26, 2024
@mchristopher mchristopher marked this pull request as ready for review August 26, 2024 20:51
@mchristopher mchristopher marked this pull request as draft August 26, 2024 23:47
@mchristopher mchristopher marked this pull request as ready for review August 30, 2024 03:31
- verifications-complete
runs-on: buildjet-4vcpu-ubuntu-2204
runs-on: ubuntu-latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Voxelot Do we want to use buildjet or switch back to github runners?

Copy link
Member

Choose a reason for hiding this comment

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

we should probably stick with buildjet for CI performance reasons

cc @mchristopher

Copy link
Member Author

Choose a reason for hiding this comment

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

FYI, this moves back to basic runners for tasks that are not CPU or memory intensive (like downloading/uploading files). It's an optimization to make sure we're not spending more money than needed on buildjet.

&& xx-verify ./target/$(xx-cargo --print-target-triple)/release/fuel-core \
&& mv ./target/$(xx-cargo --print-target-triple)/release/fuel-core ./target/release/fuel-core \
&& mv ./target/$(xx-cargo --print-target-triple)/release/fuel-core.d ./target/release/fuel-core.d
&& cp ./target/$(xx-cargo --print-target-triple)/release/fuel-core /root/fuel-core \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we want to copy if moving is faster?=)

Copy link
Member Author

Choose a reason for hiding this comment

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

mv just changes the filesystem pointer, which is problematic when the build directory is cached. The cache is only mounted during this RUN command, so I need to copy the file to ensure it's available for Docker to copy to another image later in the run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Skip the CI check of the changelog modification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants