From cf42f57592aa18841d2a49c019ebe59352091dfd Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sat, 31 Jan 2026 08:50:48 +1100 Subject: [PATCH] ci: add registry caching for faster Docker builds Adds registry-based cache alongside GHA cache to improve build times when GHA cache is evicted (7-day retention limit). Co-Authored-By: Claude Opus 4.5 --- .github/workflows/build-cross-image.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-cross-image.yml b/.github/workflows/build-cross-image.yml index dd5b299f5..004831139 100644 --- a/.github/workflows/build-cross-image.yml +++ b/.github/workflows/build-cross-image.yml @@ -94,8 +94,12 @@ jobs: build-args: | ZIG_VERSION=${{ steps.vars.outputs.zig_version }} MACOS_SDK_VERSION=${{ steps.vars.outputs.sdk_version }} - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: | + type=gha + type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache + cache-to: | + type=gha,mode=max + type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max # Test cross-compilation using wails3 task system (3 parallel jobs) # Runs on Linux/amd64 runner - tests actual cross-compilation only: