Skip to content

Commit 41d7ebe

Browse files
committed
Replace vcpkg cache with sccache
1 parent 31e3ba8 commit 41d7ebe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build-multi-platform.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ jobs:
4949
- name: Install macOS dependencies
5050
if: startsWith( matrix.os, 'macos' )
5151
run: brew install zip ninja
52-
53-
- name: Export GitHub Actions cache environment variables
54-
uses: actions/github-script@v7
55-
with:
56-
script: |
57-
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
58-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
52+
53+
- name: Run sccache-cache
54+
uses: mozilla-actions/sccache-action@main
5955

6056
- name: Build
6157
id: build
6258
env:
63-
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
6459
MSYSTEM: ""
60+
SCCACHE_GHA_ENABLED: true
61+
CMAKE_GENERATOR: Ninja
62+
CMAKE_C_COMPILER_LAUNCHER: sccache
63+
CMAKE_CXX_COMPILER_LAUNCHER: sccache
64+
VCPKG_KEEP_ENV_VARS: CMAKE_C_COMPILER_LAUNCHER;CMAKE_CXX_COMPILER_LAUNCHER;CMAKE_GENERATOR
6565
run: make build
6666

6767
- name: Report build failure

0 commit comments

Comments
 (0)