From 797e1dfb83f949006b8b2007c4d65444394c2136 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 26 Jun 2024 09:46:47 +0900 Subject: Link dll files on install-vcpkg tasks --- .github/workflows/windows.yml | 9 +-------- win32/Makefile.sub | 3 +++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d9a8c23090..a155a5223e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -142,17 +142,10 @@ jobs: run: cl - name: Install libraries with vcpkg - run: | - vcpkg install --triplet x64-windows - working-directory: src + run: nmake install-vcpkg env: VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" - - name: link libraries - run: | - for %%I in (..\src\vcpkg_installed\x64-windows\bin\*.dll) do ( - if not %%~nI == readline mklink %%~nxI %%I - ) # We use OpenSSL instealled by vcpkg instead - name: disable system OpenSSL run: | diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 8c2b9c89db..aff5fc6e2b 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -597,6 +597,9 @@ 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 + ) .PHONY: reconfig reconfig $(MKFILES): $(srcdir)/common.mk $(srcdir)/version.h \ -- cgit v1.2.3