Skip to content

Commit

Permalink
Add version option to OpenSSL Windows install action (#52)
Browse files Browse the repository at this point in the history
* Refs #20255: Add version option to OpenSSL Windows install action

Signed-off-by: EduPonz <[email protected]>

* Refs #20255: Fix input check

Signed-off-by: EduPonz <[email protected]>

* Refs #20255: Add equal to option

Signed-off-by: EduPonz <[email protected]>

* Refs #20255: Fix openssl version on install fastdds dependencies action

Signed-off-by: EduPonz <[email protected]>

---------

Signed-off-by: EduPonz <[email protected]>
  • Loading branch information
EduPonz authored Jan 17, 2024
1 parent 103f38b commit ab1b5ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
4 changes: 3 additions & 1 deletion windows/install_fastdds_dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ runs:
cmake_build_type: ${{ inputs.cmake_build_type }}

- name: Install Open SSL
uses: eProsima/eProsima-CI/windows/install_openssl@main
uses: eProsima/eprosima-CI/windows/install_openssl@main
with:
version: '3.1.1'
19 changes: 16 additions & 3 deletions windows/install_openssl/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: install_openssl
description: Install and setup Open SSL for linking and building in Windows
description: Install and setup OpenSSL for linking and building in Windows

inputs:

version:
description: 'OpenSSL version (default: latests)'
required: false
default: ''

runs:
using: composite
Expand All @@ -9,9 +16,15 @@ runs:
shell: pwsh
run: |
"::group::Install Open SSL"
"::group::Install OpenSSL"
if (-not [string]::IsNullOrWhiteSpace( "${{ inputs.version }}" )) {
$VERSION = "--version=${{ inputs.version }}"
} else {
$VERSION = ""
}
choco install openssl -yr --no-progress;
choco install openssl $VERSION -yr --no-progress;
@(ls -Path C:\Windows\System32\* -Include libssl-*.dll; ls -Path C:\Windows\SysWOW64\* -Include libssl-*.dll) | rm -ErrorAction SilentlyContinue
"::endgroup::"

0 comments on commit ab1b5ac

Please sign in to comment.