From 7b76b680fa29967e0e041c177bdc67b60aaed370 Mon Sep 17 00:00:00 2001 From: yihau Date: Thu, 3 Jul 2025 13:20:01 +0800 Subject: [PATCH 1/2] ci: use vcpkg to install openssl --- .github/scripts/install-openssl.sh | 31 ++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/scripts/install-openssl.sh b/.github/scripts/install-openssl.sh index d49db5d4f6c..2916ff87699 100644 --- a/.github/scripts/install-openssl.sh +++ b/.github/scripts/install-openssl.sh @@ -6,12 +6,31 @@ os_name="$1" case "$os_name" in "Windows") - echo "Downloading OpenSSL installer..." - curl -L -o "openssl-installer.exe" "https://slproweb.com/download/Win64OpenSSL-3_4_2.exe" - echo "Installing OpenSSL..." - cmd.exe /c "openssl-installer.exe /verysilent /sp- /suppressmsgboxes /norestart /DIR=C:\OpenSSL" - export OPENSSL_LIB_DIR="C:\OpenSSL\lib\VC\x64\MT" - export OPENSSL_INCLUDE_DIR="C:\OpenSSL\include" + # initialize vcpkg.json. the builtin-baseline is the commit that contains required version. + # the commit hash can be found in https://github.com/microsoft/vcpkg with `git log --pretty=format:"%H %s" | grep openssl` + # can be verified with: + # web: + # https://github.com/microsoft/vcpkg/blob/__COMMIT_HASH__/versions/o-/openssl.json + # command: + # git show __COMMIT_HASH__:versions/o-/openssl.json + cat > vcpkg.json < Date: Thu, 3 Jul 2025 22:34:35 +0800 Subject: [PATCH 2/2] remove useless lines --- .github/scripts/install-openssl.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/scripts/install-openssl.sh b/.github/scripts/install-openssl.sh index 2916ff87699..bb4bbd69add 100644 --- a/.github/scripts/install-openssl.sh +++ b/.github/scripts/install-openssl.sh @@ -15,8 +15,6 @@ case "$os_name" in # git show __COMMIT_HASH__:versions/o-/openssl.json cat > vcpkg.json <