mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
CI/GitHub: Fixed installing openssl for windows actions
This commit is contained in:
11
.github/workflows/win-x64-build.yml
vendored
11
.github/workflows/win-x64-build.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user