From 9cdbb549979efc15c056490c40b4c5ec896d695b Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 29 May 2025 14:03:17 +0200 Subject: [PATCH] Cache fixes --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a87f60b..7bfaed99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -102,9 +102,9 @@ jobs: uses: actions/cache/restore@v3 with: path: ${{env.SCCACHE_DIR}} - key: sccache-dumper-${{ github.head_ref || github.ref_name }}- + key: sccache-${{github.job}}-${{ github.head_ref || github.ref_name }}- restore-keys: | - sccache-dumper-${{ github.event.repository.default_branch }}- + sccache-${{github.job}}-${{ github.event.repository.default_branch }}- - name: Install sccache uses: mozilla-actions/sccache-action@v0.0.9 @@ -118,7 +118,7 @@ jobs: uses: actions/cache/save@v3 with: path: ${{env.SCCACHE_DIR}} - key: sccache-dumper-${{ github.head_ref || github.ref_name }}-${{github.run_id}}-${{github.run_attempt}} + key: sccache-${{github.job}}-${{ github.head_ref || github.ref_name }}-${{github.run_id}}-${{github.run_attempt}} - name: Upload Artifacts uses: pyTooling/upload-artifact@v4 @@ -298,9 +298,9 @@ jobs: uses: actions/cache/restore@v3 with: path: ${{env.SCCACHE_DIR}} - key: sccache-${{matrix.platform}}-${{matrix.configuration}}-${{ github.head_ref || github.ref_name }}- + key: sccache-${{github.job}}-${{matrix.platform}}-${{matrix.configuration}}-${{ github.head_ref || github.ref_name }}- restore-keys: | - sccache-${{matrix.platform}}-${{matrix.configuration}}-${{ github.event.repository.default_branch }}- + sccache-${{github.job}}-${{matrix.platform}}-${{matrix.configuration}}-${{ github.event.repository.default_branch }}- - name: Install sccache uses: mozilla-actions/sccache-action@v0.0.9 @@ -321,7 +321,7 @@ jobs: uses: actions/cache/save@v3 with: path: ${{env.SCCACHE_DIR}} - key: sccache-${{matrix.platform}}-${{matrix.configuration}}-${{ github.head_ref || github.ref_name }}-${{github.run_id}}-${{github.run_attempt}} + key: sccache-${{github.job}}-${{matrix.platform}}-${{matrix.configuration}}-${{ github.head_ref || github.ref_name }}-${{github.run_id}}-${{github.run_attempt}} - name: Upload Artifacts uses: pyTooling/upload-artifact@v4