summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-08 18:44:24 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2025-07-09 09:40:32 -0700
commitfd8a67fc8c10326042989da7d4e49b90c2f27ebb (patch)
tree61a3ea6032453699326cc5a700ab9cadb0a842e0
parent942d64b428ea72929d66198ff8751c4980b94777 (diff)
Re-ordered vcpkg related steps. It may be affected with VsDevCmd.bat
-rw-r--r--.github/workflows/windows.yml37
1 files changed, 19 insertions, 18 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 8dcb7d2bef..0b6c6ed2b7 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -95,13 +95,6 @@ jobs:
windows-toolchain: none
if: ${{ matrix.os != '2025' }}
- - name: Install libraries with scoop
- run: |
- iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
- Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
- scoop install vcpkg cmake@3.31.6
- shell: pwsh
-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
sparse-checkout-cone-mode: false
@@ -112,6 +105,25 @@ jobs:
srcdir: src
builddir: build
+ - name: Install tools with scoop
+ run: |
+ iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
+ Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
+ scoop install vcpkg cmake@3.31.6
+ shell: pwsh
+
+ # vcpkg built-in cache is not working now
+ - name: Restore vcpkg artifact
+ uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
+ with:
+ path: src\vcpkg_installed
+ key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
+
+ - name: Install libraries with vcpkg
+ run: |
+ vcpkg install --vcpkg-root=C:\Users\runneradmin\scoop\apps\vcpkg\current
+ working-directory: src
+
- name: setup env
# Available Ruby versions: https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md#ruby
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
@@ -145,17 +157,6 @@ jobs:
run: Get-Volume
shell: pwsh
- - name: Restore vcpkg artifact
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- with:
- path: ${{ github.workspace }}/src/vcpkg_installed
- key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
-
- - name: Install libraries with vcpkg
- run: |
- vcpkg install --vcpkg-root=C:\Users\runneradmin\scoop\apps\vcpkg\current
- working-directory: src
-
# TODO: We should use `../src` instead of `D:/a/ruby/ruby/src`
- name: Configure
run: >-