From b0320874f5355b94afa4a46b29eef846ce03df10 Mon Sep 17 00:00:00 2001 From: Jin Date: Wed, 2 Aug 2023 16:49:40 -0700 Subject: [PATCH] Update build_cli_release.ps1 to include openssl --- scripts/cli/build_cli_release.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/cli/build_cli_release.ps1 b/scripts/cli/build_cli_release.ps1 index 4e1e8aeb65179d..495e7bc00b30bd 100755 --- a/scripts/cli/build_cli_release.ps1 +++ b/scripts/cli/build_cli_release.ps1 @@ -15,6 +15,10 @@ $CARGO_PATH="crates\$CRATE_NAME\Cargo.toml" # Get the version of the CLI from its Cargo.toml. $VERSION = Get-Content $CARGO_PATH | Select-String -Pattern '^\w*version = "(\d*\.\d*.\d*)"' | % {"$($_.matches.groups[1])"} +# Note: This is required to bypass openssl isssue on Windows. +echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append +vcpkg install openssl:x64-windows-static-md --clean-after-build + # Build the CLI. echo "Building release $VERSION of $NAME for Windows" cargo build -p $CRATE_NAME --profile cli