8000 windows.yml - use vcpkg archive from GHA setup-ruby · ruby/ruby@bd88fbe · GitHub
[go: up one dir, main page]

Skip to content

Commit bd88fbe

Browse files
committed
windows.yml - use vcpkg archive from GHA setup-ruby
1 parent 83f57ca commit bd88fbe

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/windows.yml

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

100-
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
101-
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-
115-
116100
- name: Install libraries with vcpkg
117101
run: |
118-
vcpkg --triplet x64-windows install gmp libffi libyaml openssl zlib
102+
cd $env:VCPKG_INSTALLATION_ROOT
103+
$uri = "https://github.com/ruby/setup-msys2-gcc/releases/download/msys2-gcc-pkgs/mswin.7z"
104+
curl -L $uri -o $env:RUNNER_TEMP/mswin_temp.7z
105+
&"C:\Program Files\7-Zip\7z" x $env:RUNNER_TEMP/mswin_temp.7z -aoa
106+
echo "`n———————————— ./vcpkg list ————————————"
107+
./vcpkg list
108+
shell: pwsh
109+
timeout-minutes: 5
119110

120111
- name: Install libraries with scoop
121112
run: |

0 commit comments

Comments
 (0)
0