Fix sccache path

This commit is contained in:
momo5502
2025-05-29 13:57:13 +02:00
parent 202461c5bd
commit d7aaf6ac25
2 changed files with 2 additions and 3 deletions

View File

@@ -105,7 +105,6 @@ jobs:
key: sccache-dumper-${{ github.head_ref || github.ref_name }}- key: sccache-dumper-${{ github.head_ref || github.ref_name }}-
restore-keys: | restore-keys: |
sccache-dumper-${{ github.event.repository.default_branch }}- sccache-dumper-${{ github.event.repository.default_branch }}-
sccache dumper ${{ github.head_ref || github.ref_name }}-
- name: Install sccache - name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.9 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 }}- key: sccache-${{matrix.platform}}-${{matrix.configuration}}-${{ github.head_ref || github.ref_name }}-
restore-keys: | restore-keys: |
sccache-${{matrix.platform}}-${{matrix.configuration}}-${{ github.event.repository.default_branch }}- sccache-${{matrix.platform}}-${{matrix.configuration}}-${{ github.event.repository.default_branch }}-
sccache ${{matrix.platform}} ${{matrix.configuration}} ${{ github.head_ref || github.ref_name }}-
- name: Install sccache - name: Install sccache
uses: mozilla-actions/sccache-action@v0.0.9 uses: mozilla-actions/sccache-action@v0.0.9
@@ -323,7 +321,7 @@ jobs:
uses: actions/cache/save@v3 uses: actions/cache/save@v3
with: with:
path: ${{env.SCCACHE_DIR}} 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 - name: Upload Artifacts
uses: pyTooling/upload-artifact@v4 uses: pyTooling/upload-artifact@v4

View File

@@ -3,6 +3,7 @@ include_guard()
find_program(SCCACHE sccache) find_program(SCCACHE sccache)
if (SCCACHE) if (SCCACHE)
file(TO_CMAKE_PATH "${SCCACHE}" SCCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${SCCACHE}) set(CMAKE_C_COMPILER_LAUNCHER ${SCCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${SCCACHE}) set(CMAKE_CXX_COMPILER_LAUNCHER ${SCCACHE})
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded) set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)