aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-06-05 11:29:56 +0200
committerShauren <shauren.trinity@gmail.com>2024-06-05 11:29:56 +0200
commit01026445bbda7ffd979ab53854f62b40e21ea4b9 (patch)
tree5e2de6c7a418d04daf2f0c52da623b7c3eeaad03
parent80805aa9ee1ad5b06d433bf34d0eaa94e474e9ea (diff)
CI/GitHub: Fixed installing openssl for windows actions
-rw-r--r--.github/workflows/win-x64-build.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/win-x64-build.yml b/.github/workflows/win-x64-build.yml
index 2a1f03c7c28..18ef7563d47 100644
--- a/.github/workflows/win-x64-build.yml
+++ b/.github/workflows/win-x64-build.yml
@@ -23,7 +23,16 @@ jobs:
- name: Download and install Openssl 3.x
run: |
- $Url = "https://slproweb.com/download/Win64OpenSSL-3_2_1.exe"
+ $VersionsUrl = "https://raw.githubusercontent.com/slproweb/opensslhashes/master/win32_openssl_hashes.json"
+ $Url = (Invoke-RestMethod $VersionsUrl).files.PSObject.Properties |
+ Select-Object -ExpandProperty Value |
+ Where-Object { $_.arch -eq 'INTEL' } |
+ Where-Object { $_.bits -eq '64' } |
+ Where-Object { $_.light -eq $false } |
+ Where-Object { $_.installer -eq 'exe' } |
+ Sort-Object -Descending @{ Expression = { [version]$_.basever } } |
+ Select-Object -First 1 -ExpandProperty url
+
(New-Object System.Net.WebClient).DownloadFile($Url, "${{ env.TEMP }}\openssl.exe")
Start-Process -Wait -FilePath "${{ env.TEMP }}\openssl.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES",/DIR=${{ env.OPENSSL_ROOT_DIR }}