diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d9dbf9ca..926506e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,6 +84,9 @@ jobs: - name: sccache (Windows) if: startsWith(matrix.identifier, 'windows-') uses: mozilla-actions/sccache-action@v0.0.3 + with: + cache_key: sccache-${{ matrix.identifier }} + key: sccache-${{ matrix.identifier }} - name: Build Orchestrator (Linux/MacOS) if: startsWith(matrix.identifier, 'linux-') || startsWith(matrix.identifier, 'macos-') @@ -94,6 +97,8 @@ jobs: - name: Build Orchestrator (Windows) if: startsWith(matrix.identifier, 'windows-') + env: + SCCACHE_GHA_ENABLED: "true" shell: bash run: | cmake -B '${{ github.workspace }}/.out-${{ matrix.identifier }}' -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -S '${{ github.workspace }}' -G Ninja