Skip to content

Conversation

@larskanis
Copy link
Member

@larskanis larskanis commented Jul 20, 2025

  • Add the build jobs before the pushlish and release jobs
  • Simplify the Rakefile a little bit, by removing non-native builds
    • only release tasks are multi-platform now and should be used by adding the cache from non-native build host
  • Fix aarch64-mingw-ucrt to use $TARGETPLATFORM for download selection

@larskanis larskanis force-pushed the push-multiplat branch 2 times, most recently from 8bd8499 to 04243a3 Compare July 20, 2025 13:14
To make sure the cache is current.
The path must be the same between storing to cache and restoring from it.
@flavorjones
Copy link
Collaborator

I'm sure you saw it already, but there is a build failure on the publish pipeline: https://github.com/rake-compiler/rake-compiler-dock/actions/runs/16400289294/job/46343040974#step:8:2399

@larskanis
Copy link
Member Author

Thanks Mike! No idea why pushing aarch64-mingw-ucrt is the only job that fails currently, but the rest is already looking good. I'm happy that the images are available as x86_64 and arm64 images now! So far I had to build the images on my own ARM system, to make use of it on that system.

I also like the way it works: The Rakefile is not much more complex than before, with build and release tasks using the same code. Building runs on x86_64 runners and arm64 runners in parallel and the cache is used as glue to put outputs together into a multi-platform image.

RUBY_PLATFORM corresponds to $BUILDPLATFORM, but we need $TARGETPLATFORM actually.
This is because we use the cache from the ARM64 system to build the ARM64 image on X86_64.
Non-local build doesn't work with Qemu, but only with a build cluster of both node types.
@larskanis larskanis changed the title Add the build job before the pushlish job CI: Update the publish and release workflows for multi-platform images Jul 21, 2025
@larskanis larskanis merged commit 373e971 into main Jul 21, 2025
301 of 302 checks passed
@larskanis larskanis deleted the push-multiplat branch July 21, 2025 08:05
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.

3 participants