Skip to content

Commit

Permalink
Refs 17628: Changed installation source and path of OpenSSL
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Santiago <[email protected]>
  • Loading branch information
jsan-rt committed Jun 19, 2023
1 parent 051df43 commit 82b0453
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/reusable-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,23 +201,14 @@ jobs:
'build', 'googletest', 'gtest.log' | del -Recurse -Force
- 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;
uses: eProsima/eprosima-CI/windows/install_openssl@v0

- name: Update OpenSSL environment variables
run: |
# Update the environment
"OPENSSL64_ROOT=$Env:ProgramFiles\OpenSSL-Win64" | Out-File $Env:GITHUB_ENV -Append -Encoding OEM
"OPENSSL64_ROOT=$Env:ProgramW6432\OpenSSL" | 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"
dir $Env:ProgramW6432\OpenSSL
- name: Update known hosts file for DNS resolver testing
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}
Expand Down Expand Up @@ -277,8 +268,8 @@ jobs:
cd $deploy_dir
nmake .\Makefile.mak OPENSSL_DIR=$Env:OPENSSL64_ROOT BUILD_FOR=WIN64
$config = ls -Path $Env:OPENSSL64_ROOT -Recurse -Include openssl.cnf;
nmake .\Makefile.mak OPENSSL_DIR="$Env:OPENSSL64_ROOT" BUILD_FOR=WIN64
$config = ls -Path "$Env:OPENSSL64_ROOT" -Recurse -Include openssl.cnf;
$libp11_path = Join-Path $deploy_dir src
'LibP11_ROOT_64=' + $libp11_path | Out-File $Env:GITHUB_ENV -Append -Encoding OEM
Expand Down

0 comments on commit 82b0453

Please sign in to comment.