diff --git a/windows/install_fastdds_dependencies/action.yml b/windows/install_fastdds_dependencies/action.yml index cb685595..bbeed18b 100644 --- a/windows/install_fastdds_dependencies/action.yml +++ b/windows/install_fastdds_dependencies/action.yml @@ -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' diff --git a/windows/install_openssl/action.yml b/windows/install_openssl/action.yml index d176af94..6b0c55d1 100644 --- a/windows/install_openssl/action.yml +++ b/windows/install_openssl/action.yml @@ -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 @@ -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::"