mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Reimplement function resolving GH asset (#8899)
* [Windows] Reimplement function resolving GH asset * Fix tests and software report * Fix selenium-server version check
This commit is contained in:
committed by
GitHub
parent
e8f9c10965
commit
da1c04b81a
@@ -50,12 +50,10 @@ if (Test-IsWin19) {
|
||||
throw "Unknown architecture $_"
|
||||
}
|
||||
|
||||
$url = Get-GitHubPackageDownloadUrl `
|
||||
-RepoOwner "niXman" `
|
||||
-RepoName "mingw-builds-binaries" `
|
||||
-BinaryName "" `
|
||||
-Version $version `
|
||||
-UrlFilter "*$arch-{Version}-release-$threads-$exceptions-$runtime-*.7z"
|
||||
$url = Resolve-GithubReleaseAssetUrl `
|
||||
-Repo "niXman/mingw-builds-binaries" `
|
||||
-Version "$version" `
|
||||
-Asset "$arch-*-release-$threads-$exceptions-$runtime-*.7z"
|
||||
|
||||
$packagePath = Start-DownloadWithRetry -Url $url -Name "$_.7z"
|
||||
Expand-7ZipArchive -Path $packagePath -DestinationPath "C:\"
|
||||
|
||||
Reference in New Issue
Block a user