ci: add GHA layer cache to push job#94
Merged
Merged
Conversation
chorrell
added a commit
that referenced
this pull request
May 26, 2026
Expands the `test` job to run in parallel for both `linux/amd64` and `linux/arm64` using a matrix strategy. QEMU and Buildx are added to support cross-architecture builds on the amd64 runner. - `fail-fast: false` ensures both platforms are always reported even if one fails - GHA cache is scoped per-platform (`scope=linux/amd64` / `scope=linux/arm64`) so each platform maintains its own cache entry - The `Test` step passes `--platform` to `docker run` to exercise the correct architecture via QEMU Note: if merged alongside #94, the push job's unscoped cache and the test job's scoped cache will coexist without conflict.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
cache-from: type=ghaandcache-to: type=gha,mode=maxto theBuild and pushstep. Thepushjob already hasdocker/setup-buildx-actionso no additional setup is required.On repeat pushes to
main, unchanged layers will be restored from the GHA cache instead of rebuilt from scratch, reducing build time significantly.Note: per-platform scoped caching for the
testjob is introduced separately alongside the arm64 matrix (PR #TODO).