Skip to content

Commit a433138

Browse files
Replace manual cache save/restore with scoped one
1 parent 2a983d1 commit a433138

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/build-mac.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ jobs:
3333
core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
3434
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
3535
36-
- name: Restore cache
37-
id: cache
38-
uses: actions/cache/restore@v4
36+
- name: Setup cache
37+
uses: actions/cache@v4
3938
with:
40-
path: Cache
41-
key: ${{ runner.os }}
39+
path: Cache/3rdParty
40+
key: ${{ runner.os }}-3rdparty
4241

4342
- name: Setup cmake
4443
uses: lukka/get-cmake@v4.2.1
@@ -64,9 +63,3 @@ jobs:
6463
export CMAKE_CXX_COMPILER_LAUNCHER=sccache
6564
export SCCACHE_GHA_ENABLED=true
6665
python/python.sh -u scripts/build/ci_build.py --platform Mac --type profile
67-
68-
- name: Save cache
69-
uses: actions/cache/save@v4
70-
with:
71-
path: Cache
72-
key: ${{ steps.cache.outputs.cache-primary-key }}

0 commit comments

Comments
 (0)