diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cbc2a24..4a87f60b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,7 +105,6 @@ jobs: key: sccache-dumper-${{ github.head_ref || github.ref_name }}- restore-keys: | sccache-dumper-${{ github.event.repository.default_branch }}- - sccache dumper ${{ github.head_ref || github.ref_name }}- - name: Install sccache uses: mozilla-actions/sccache-action@v0.0.9 @@ -302,7 +301,6 @@ jobs: 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 ${{matrix.platform}} ${{matrix.configuration}} ${{ github.head_ref || github.ref_name }}- - name: Install sccache uses: mozilla-actions/sccache-action@v0.0.9 @@ -323,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-${{matrix.platform}}-${{matrix.configuration}}-${{ github.head_ref || github.ref_name }}-${{github.run_id}}-${{github.run_attempt}} - name: Upload Artifacts uses: pyTooling/upload-artifact@v4 diff --git a/cmake/sccache.cmake b/cmake/sccache.cmake index 11179d16..732330d5 100644 --- a/cmake/sccache.cmake +++ b/cmake/sccache.cmake @@ -3,6 +3,7 @@ include_guard() find_program(SCCACHE sccache) if (SCCACHE) + file(TO_CMAKE_PATH "${SCCACHE}" SCCACHE) set(CMAKE_C_COMPILER_LAUNCHER ${SCCACHE}) set(CMAKE_CXX_COMPILER_LAUNCHER ${SCCACHE}) set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)