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:
Dibir Magomedsaygitov
2020-05-15 15:01:45 +03:00
committed by GitHub
parent 89b403d60a
commit 5160bfa626
7 changed files with 196 additions and 1 deletions

View File

@@ -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.