From a26c3802f88a2cd5f4052590c674ed5c7d340a12 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Sat, 30 Dec 2023 22:04:43 -0500 Subject: [PATCH] GH-43 Specify cache key for sccache --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) 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