TUN-8066: Define scripts to build on Windows agents

This commit is contained in:
Chung-Ting
2023-12-14 18:03:19 +00:00
parent 12dd91ada1
commit 33baad35b8
7 changed files with 158 additions and 5 deletions

20
.teamcity/windows/install-go-msi.ps1 vendored Normal file
View File

@@ -0,0 +1,20 @@
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"
$GoMsiVersion = "go1.21.5.windows-amd64.msi"
Write-Output "Downloading go installer..."
Set-Location "$Env:Temp"
(New-Object System.Net.WebClient).DownloadFile(
"https://go.dev/dl/$GoMsiVersion",
"$Env:Temp\$GoMsiVersion"
)
Write-Output "Installing go..."
Install-Package "$Env:Temp\$GoMsiVersion" -Force
# Go installer updates global $PATH
go env
Write-Output "Installed"