Skip to content

Commit baa3e63

Browse files
committed
ci(rust): install openssl on windows via choco in pre-build.sh
The windows-latest runner doesn't have OpenSSL pre-installed in the C:\Program Files\OpenSSL-Win64 directory anymore, causing openssl-sys build to fail. Installing it via chocolatey fixes this.
1 parent 660b61f commit baa3e63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/ci/scripts/pre-build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
set -ex
44

55
if [[ "$2" == "windows" ]]; then
6-
echo "OPENSSL_DIR='C:\Program Files\OpenSSL-Win64'" > .env.build
6+
choco install openssl -y
7+
echo "OPENSSL_DIR='C:\Program Files\OpenSSL'" > .env.build
78
fi

0 commit comments

Comments
 (0)