Run cross builds in parallel to speed up CI checks #1775
joelim-work
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Cross builds was introduced as part of the CI checks in #1298, to prevent changes from being merged if they caused problems on specific platforms (see #1294 for an example).
Currently this is implemented by
xbuild.sh
, which works fine but is slow because it only builds on one platform at a time. When PRs are submitted, the cross build process usually takes around 5 minutes to complete.I recently thought of using a matrix strategy in GitHub Actions to run the cross builds in parallel. With this, the process can be shortened to around 1.5 minutes, at least from my testing. The changes would look something like this:
.github/workflows/go.yml
:Beta Was this translation helpful? Give feedback.
All reactions