Skip to content

Commit 2ac3711

Browse files
committed
windows: Don't install openssl with choco
1 parent 4eb407f commit 2ac3711

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

program-test/install-build-deps.sh

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,22 @@
22
set -e
33
case $(uname -s | cut -c1-7) in
44
"Windows" | "MINGW64")
5-
choco install openssl --version 3.4.1 --install-arguments="'/DIR=C:\OpenSSL'" -y
6-
export OPENSSL_LIB_DIR='C:\OpenSSL\lib\VC\x64\MT'
7-
export OPENSSL_INCLUDE_DIR='C:\OpenSSL\include'
5+
cat > vcpkg.json <<EOL
6+
{
7+
"dependencies": ["openssl"],
8+
"overrides": [
9+
{
10+
"name": "openssl",
11+
"version": "3.4.1"
12+
}
13+
],
14+
"builtin-baseline": "5ee5eee0d3e9c6098b24d263e9099edcdcef6631"
15+
}
16+
EOL
17+
vcpkg install --triplet x64-windows-static-md
18+
rm vcpkg.json
19+
export "OPENSSL_LIB_DIR=$GITHUB_WORKSPACE/vcpkg_installed/x64-windows-static-md/lib"
20+
export "OPENSSL_INCLUDE_DIR=$GITHUB_WORKSPACE/vcpkg_installed/x64-windows-static-md/include"
821
choco install protoc
922
export PROTOC='C:\ProgramData\chocolatey\lib\protoc\tools\bin\protoc.exe'
1023
;;

0 commit comments

Comments
 (0)