diff --git a/.github/scripts/install-openssl.sh b/.github/scripts/install-openssl.sh index 87f818f3a07783..7b52610dd22704 100644 --- a/.github/scripts/install-openssl.sh +++ b/.github/scripts/install-openssl.sh @@ -6,12 +6,29 @@ 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 <