From bdee8b8584c961737c1808e8429b74d183a26785 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 29 May 2025 11:59:59 +0200 Subject: [PATCH] More cache tests --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c747f0de..e594ac1a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -262,13 +262,17 @@ jobs: shell: bash run: | echo SCCACHE_CACHE=$(sccache --show-stats | grep Local | cut -d '"' -f2) >> $GITHUB_ENV + echo SCCACHE_CACHE_SIZE=1G >> $GITHUB_ENV sccache --stop-server || true - name: Recover sccache cache uses: actions/cache@v3 with: path: ${{env.SCCACHE_CACHE}} - key: sccache-cache-${{runner.os}}-${{matrix.platform}}-${{matrix.configuration}} + key: sccache ${{matrix.platform}} ${{matrix.configuration}} ${{ github.head_ref || github.ref_name }} + restore-keys: | + sccache ${{matrix.platform}} ${{matrix.configuration}} ${{ github.event.repository.default_branch }} + sccache-cache-${{runner.os}}-${{matrix.platform}}-${{matrix.configuration}} - name: Start sccache shell: bash