From 0cb354be7a370852725266272d29cddecbe9a364 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 19 Apr 2026 21:48:06 +0200 Subject: [PATCH] ci: fix stack cache for macOS We now have two stack jobs for macOS, but they use the same cache, which is very inefficient. Adding the architecture to the cache key will give each of these jobs a separate cache. --- .github/actions/cache-on-main/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/cache-on-main/action.yaml b/.github/actions/cache-on-main/action.yaml index 867ebb2b1..07a44048e 100644 --- a/.github/actions/cache-on-main/action.yaml +++ b/.github/actions/cache-on-main/action.yaml @@ -24,11 +24,11 @@ runs: path: ${{ inputs.path }} key: ${{ runner.os }}-${{ inputs.prefix }}-${{ inputs.suffix }} restore-keys: | - ${{ runner.os }}-${{ inputs.prefix }}- + ${{ runner.os }}-${{ runner.arch }}-${{ inputs.prefix }}- - uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 if: ${{ !startsWith(github.ref, 'refs/heads/') && !(inputs.save-prs && startsWith(github.ref, 'refs/pull/')) }} with: path: ${{ inputs.path }} key: ${{ runner.os }}-${{ inputs.prefix }}-${{ inputs.suffix }} restore-keys: | - ${{ runner.os }}-${{ inputs.prefix }}- + ${{ runner.os }}-${{ runner.arch }}-${{ inputs.prefix }}-