mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-13 21:36:46 +00:00
Install Stack, GHC and Cabal to Windows Images (#874)
* install stack * implement logic that gets 3 latest versions of ghc
This commit is contained in:
committed by
GitHub
parent
89b403d60a
commit
5160bfa626
@@ -221,12 +221,15 @@ function Start-DownloadWithRetry
|
||||
(
|
||||
[Parameter(Mandatory)]
|
||||
[string] $Url,
|
||||
[Parameter(Mandatory)]
|
||||
[string] $Name,
|
||||
[string] $DownloadPath = "${env:Temp}",
|
||||
[int] $Retries = 20
|
||||
)
|
||||
|
||||
if ([String]::IsNullOrEmpty($Name)) {
|
||||
$Name = [IO.Path]::GetFileName($Url)
|
||||
}
|
||||
|
||||
$filePath = Join-Path -Path $DownloadPath -ChildPath $Name
|
||||
|
||||
#Default retry logic for the package.
|
||||
|
||||
Reference in New Issue
Block a user