diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d70ad2861..54de7ca06 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -562,7 +562,7 @@ jobs: shell: msys2 {0} run: | echo "ccachedir=$(cygpath -m $(${CCACHE} -k cache_dir))" >> $GITHUB_OUTPUT - echo "key=ccache:msvc:${{ github.ref }}:$(date +"%Y-%m-%d_%H-%M-%S"):${{ github.sha }}" >> $GITHUB_OUTPUT + echo "key=ccache:msvc:${{ matrix.openmp }}:${{ github.ref }}:$(date +"%Y-%m-%d_%H-%M-%S"):${{ github.sha }}" >> $GITHUB_OUTPUT - name: restore ccache # Setup the GitHub cache used to maintain the ccache from one job to the next @@ -572,8 +572,8 @@ jobs: key: ${{ steps.ccache-prepare.outputs.key }} # Prefer caches from the same branch. Fall back to caches from the dev branch. restore-keys: | - ccache:msvc:${{ github.ref }} - ccache:msvc + ccache:msvc:${{ matrix.openmp }}:${{ github.ref }} + ccache:msvc:${{ matrix.openmp }} - name: configure ccache # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota.