Skip to content

Commit bf061ce

Browse files
committed
1 parent ac9e84d commit bf061ce

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/windows.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,25 +97,18 @@ jobs:
9797
bundler: none
9898
windows-toolchain: none
9999

100-
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
100+
- name: Export GitHub Actions cache environment variables
101+
uses: actions/github-script@v7
101102
with:
102-
path: C:\vcpkg\downloads
103-
key: ${{ runner.os }}-vcpkg-download-${{ env.OS_VER }}-${{ github.sha }}
104-
restore-keys: |
105-
${{ runner.os }}-vcpkg-download-${{ env.OS_VER }}-
106-
${{ runner.os }}-vcpkg-download-
107-
108-
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
109-
with:
110-
path: C:\vcpkg\installed
111-
key: ${{ runner.os }}-vcpkg-installed-${{ env.OS_VER }}-${{ github.sha }}
112-
restore-keys: |
113-
${{ runner.os }}-vcpkg-installed-${{ env.OS_VER }}-
114-
${{ runner.os }}-vcpkg-installed-
103+
script: |
104+
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
105+
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
115106
116107
- name: Install libraries with vcpkg
117108
run: |
118109
vcpkg --triplet x64-windows install gmp libffi libyaml openssl zlib
110+
env:
111+
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
119112

120113
- name: Install libraries with scoop
121114
run: |

0 commit comments

Comments
 (0)