From 463d2f77c9abf67b28e4606d2bd54cb2be0d05da Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Fri, 16 Oct 2026 17:51:49 +0200 Subject: [PATCH] ci: share the clone cache between hosted and self-hosted runners actions/cache includes the path in the cache version. With ${{ github.workspace }} the garm runners (/home/runner/actions-runner/_work) never found the cache saved on GitHub-hosted runners (/home/runner/work), so their builds failed with './build does not exist'. Assisted-by: ClaudeCode:claude-opus-5-5 Claude-Session: https://claude.ai/code/session_01F62hq4w32Hn5hrkaheRCTt Signed-off-by: Julius Knorr --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 645e57086b..ad387efefd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -117,7 +117,8 @@ jobs: - name: Cache clones uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: - path: "${{ github.workspace }}" + # Relative, so hosted and self-hosted runners (different workspace paths) share the cache. + path: . key: ${{ runner.os }}-build-${{ github.sha }} # ───────────────────────────────────────────────────────────── @@ -172,7 +173,8 @@ jobs: - name: Restore cache uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: - path: "${{ github.workspace }}" + # Relative, so hosted and self-hosted runners (different workspace paths) share the cache. + path: . key: ${{ runner.os }}-build-${{ github.sha }} - name: Set up Docker Buildx