Skip to content

Commit dc4e271

Browse files
committed
Fix CI caching
1 parent 1c27641 commit dc4e271

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/build-macos.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,18 @@ jobs:
3030
bundle_id: ch.spidy.PathOfBuildingMacPoE2
3131
app_support_dir: PathOfBuildingMacPoE2
3232

33-
env:
34-
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
35-
3633
steps:
3734
- name: Checkout (with submodules)
3835
uses: actions/checkout@v4
3936
with:
4037
submodules: recursive
4138

42-
- name: Export Actions Cache env vars for vcpkg
43-
uses: actions/github-script@v7
39+
- name: Cache vcpkg archives
40+
uses: actions/cache@v4
4441
with:
45-
script: |
46-
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
47-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
42+
path: ~/.cache/vcpkg/archives
43+
key: vcpkg-${{ hashFiles('SimpleGraphic/vcpkg.json', 'SimpleGraphic/vcpkg-configuration.json', 'vcpkg-triplets/arm64-osx-pob.cmake') }}
44+
restore-keys: vcpkg-
4845

4946
- name: Configure
5047
run: >

.github/workflows/release-macos.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,18 @@ jobs:
3131
bundle_id: ch.spidy.PathOfBuildingMacPoE2
3232
app_support_dir: PathOfBuildingMacPoE2
3333

34-
env:
35-
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
36-
3734
steps:
3835
- name: Checkout (with submodules)
3936
uses: actions/checkout@v4
4037
with:
4138
submodules: recursive
4239

43-
- name: Export Actions Cache env vars for vcpkg
44-
uses: actions/github-script@v7
40+
- name: Cache vcpkg archives
41+
uses: actions/cache@v4
4542
with:
46-
script: |
47-
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
48-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
43+
path: ~/.cache/vcpkg/archives
44+
key: vcpkg-${{ hashFiles('SimpleGraphic/vcpkg.json', 'SimpleGraphic/vcpkg-configuration.json', 'vcpkg-triplets/arm64-osx-pob.cmake') }}
45+
restore-keys: vcpkg-
4946

5047
- name: Import signing certificate
5148
env:

0 commit comments

Comments
 (0)