TeamCity: fix Windows builds (#2467)

Bintray is shutting down and the URL we used to install mingw is no
longer available. Use chocolatey instead.
This commit is contained in:
Alessandro Arzilli 2021-05-06 19:05:17 +02:00 committed by GitHub
parent 4b4f7a589a
commit 1962c3a627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,14 +3,11 @@ param (
[Parameter(Mandatory = $true)][string]$arch
)
# Install Chocolatey
#Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install MinGW.
if (-Not(Test-Path "C:\mingw64"))
{
$file = "x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z"
$url = "https://bintray.com/artifact/download/drewwells/generic/$file"
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile $file
&7z x -oC:\ $file > $null
}
choco install -y mingw
# Install Procdump
if (-Not(Test-Path "C:\procdump"))
@ -66,4 +63,4 @@ Write-Host $env:GOPATH
go version
go env
mingw32-make test
go run _scripts/make.go test