Skip to content

Commit 0343fcd

Browse files
committed
Replaced built-in binary cache of vcpkg to actions/cache
``` %VCPKG_BINARY_SOURCES%: warning: The 'x-gha' binary caching backend has been removed. Consider using a NuGet-based binary caching provider instead, see extended documentation at https://learn.microsoft.com/vcpkg/users/binarycaching?WT.mc_id=vcpkg_inproduct_cli. on expression: clear;x-gha,readwrite ```
1 parent bb2c266 commit 0343fcd

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/windows.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ jobs:
9696
windows-toolchain: none
9797
if: ${{ matrix.os != '2025' }}
9898

99-
- name: Export GitHub Actions cache environment variables
100-
uses: actions/github-script@v7
101-
with:
102-
script: |
103-
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
104-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
105-
10699
- name: Install libraries with scoop
107100
run: |
108101
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
@@ -153,12 +146,16 @@ jobs:
153146
run: Get-Volume
154147
shell: pwsh
155148

149+
- name: Restore vcpkg artifact
150+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
151+
with:
152+
path: ${{ github.workspace }}/src/vcpkg_installed
153+
key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
154+
156155
- name: Install libraries with vcpkg
157156
run: |
158157
vcpkg install
159158
working-directory: src
160-
env:
161-
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
162159

163160
# TODO: We should use `../src` instead of `D:/a/ruby/ruby/src`
164161
- name: Configure

0 commit comments

Comments
 (0)