Skip to content

Commit

Permalink
GH-43 Specify cache key for sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Dec 31, 2023
1 parent e2fe49f commit a26c380
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
- name: sccache (Windows)
if: startsWith(matrix.identifier, 'windows-')
uses: mozilla-actions/[email protected]
with:
cache_key: sccache-${{ matrix.identifier }}
key: sccache-${{ matrix.identifier }}

- name: Build Orchestrator (Linux/MacOS)
if: startsWith(matrix.identifier, 'linux-') || startsWith(matrix.identifier, 'macos-')
Expand All @@ -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
Expand Down

0 comments on commit a26c380

Please sign in to comment.