Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows CI #3

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Refs #17628: Try using vcpkg for openssl
Signed-off-by: Javier Santiago <[email protected]>
  • Loading branch information
jsan-rt committed Jun 12, 2023
commit 0372c3e80a7483c056990d99cdbb4219ab78ca8c
20 changes: 6 additions & 14 deletions .github/workflows/reusable-windows-ci.yml
Original file line number Diff line number Diff line change
@@ -202,22 +202,14 @@ jobs:

- name: Install OpenSSL
run: |
# Windows host has only the binaries installed, we need the headers too
# download the last installer
$uri = 'https://slproweb.com' +
((iwr 'https://slproweb.com/products/Win32OpenSSL.html').links |
sls 'href=\"(.*download/Win64OpenSSL-1_1_1.*\.exe)\"').matches.Groups.value[-1]
iwr -Uri $uri -OutFile "$Env:TMP\Win64OpenSSL.exe"

# Do install
& "$Env:TMP\Win64OpenSSL.exe" /silent /verysilent /sp- /suppressmsgboxes;
# Install vcpkg
$vcpkg_dir = "$Env:ProgramFiles\vcpkg"
git clone https://github.com/microsoft/vcpkg $vcpkg_dir
$vcpkg_dir\bootstrap-vcpkg.bat
$vcpkg_dir\vcpkg install openssl-windows:x64-windows

# Update the environment
"OPENSSL64_ROOT=$Env:ProgramFiles\OpenSSL-Win64" | Out-File $Env:GITHUB_ENV -Append -Encoding OEM

# Wait for the installation to be fulfill
Get-Process Win??OpenSSL -ErrorAction SilentlyContinue | Wait-Process
del "$Env:TMP\Win64OpenSSL.exe"
echo "OPENSSL64_ROOT=$Env:ProgramFiles\OpenSSL-Win64" | Out-File $Env:GITHUB_ENV -Append -Encoding OEM

- name: Update known hosts file for DNS resolver testing
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}