summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-06-26 10:02:32 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-06-26 12:31:02 +0900
commitd70057d4b5a1332d99bcdffb41e7333ac3ff26c0 (patch)
treeb99d5a0799bc086ae34c40cca338f5d523bb3f00
parent797e1dfb83f949006b8b2007c4d65444394c2136 (diff)
We couldn't use nmake before configure.bat
-rw-r--r--.github/workflows/windows.yml6
-rw-r--r--win32/Makefile.sub6
2 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index a155a5223e..ff6b0ea417 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -142,7 +142,9 @@ jobs:
run: cl
- name: Install libraries with vcpkg
- run: nmake install-vcpkg
+ run: |
+ vcpkg install --triplet x64-windows
+ working-directory: src
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
@@ -161,6 +163,8 @@ jobs:
../src/win32/configure.bat --disable-install-doc
--with-opt-dir=D:/a/ruby/ruby/src/vcpkg_installed/x64-windows
+ - run: nmake prepare-vcpkg
+
- run: nmake incs
- run: nmake extract-extlibs
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index aff5fc6e2b..46213466eb 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -597,8 +597,10 @@ update-vcpkg::
install-vcpkg::
@cd "$(srcdir:/=\)" && set LC_TIME=C && vcpkg install
- for %%I in ($(srcdir:/=\)\vcpkg_installed\x64-windows\bin\*.dll) do (
- if not %%~nI == readline mklink %%~nxI %%I
+
+prepare-vcpkg::
+ for %%I in ($(srcdir:/=\)\vcpkg_installed\x64-windows\bin\*.dll) do ( \
+ if not %%~nI == readline mklink %%~nxI %%I \
)
.PHONY: reconfig