From 92ba6d5caa3d0d887b7191b0ff9978f87882a016 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 19 Apr 2026 23:03:07 +0200 Subject: [PATCH] ci: fix actions/cache-on-main My recent commit to fix the stack cache on macOS only changed the restore keys, but no cache would ever be saved that way. I effectively disabled all caching... --- .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 07a44048e..ec8c60987 100644 --- a/.github/actions/cache-on-main/action.yaml +++ b/.github/actions/cache-on-main/action.yaml @@ -22,13 +22,13 @@ runs: 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 }} + key: ${{ runner.os }}-${{ runner.arch }}-${{ inputs.prefix }}-${{ inputs.suffix }} restore-keys: | ${{ 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 }} + key: ${{ runner.os }}-${{ runner.arch }}-${{ inputs.prefix }}-${{ inputs.suffix }} restore-keys: | ${{ runner.os }}-${{ runner.arch }}-${{ inputs.prefix }}-