Compare commits

..

3 Commits

Author SHA1 Message Date
Dmitry Shibanov
6de71f133a add architecture to installer script (#91) 2023-11-08 13:05:51 +01:00
github-actions[bot]
efc7cf9b98 Update versions-manifest (#90)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-11-07 14:49:58 +01:00
github-actions[bot]
2965f72cec Update versions-manifest (#89)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-10-11 17:06:59 +02:00
3 changed files with 66 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ class NixGoBuilder : GoBuilder {
$installationTemplateLocation = Join-Path -Path $this.InstallationTemplatesLocation -ChildPath $this.InstallationTemplateName
$installationTemplateContent = Get-Content -Path $installationTemplateLocation -Raw
$installationTemplateContent = $installationTemplateContent -f $this.Version.ToString(3)
$installationTemplateContent = $installationTemplateContent -f $this.Version.ToString(3), $this.Architecture
$installationTemplateContent | Out-File -FilePath $installationScriptLocation
Write-Debug "Done; Installation script location: $installationScriptLocation)"

View File

@@ -1,10 +1,11 @@
set -e
GO_VERSION={0}
ARCH={1}
GO_TOOLCACHE_PATH=$AGENT_TOOLSDIRECTORY/go
GO_TOOLCACHE_VERSION_PATH=$GO_TOOLCACHE_PATH/$GO_VERSION
GO_TOOLCACHE_VERSION_ARCH_PATH=$GO_TOOLCACHE_VERSION_PATH/x64
GO_TOOLCACHE_VERSION_ARCH_PATH=$GO_TOOLCACHE_VERSION_PATH/$ARCH
echo "Check if Go hostedtoolcache folder exist..."
if [ ! -d $GO_TOOLCACHE_PATH ]; then
@@ -22,4 +23,4 @@ cp -R ./* $GO_TOOLCACHE_VERSION_ARCH_PATH
rm $GO_TOOLCACHE_VERSION_ARCH_PATH/setup.sh
echo "Create complete file"
touch $GO_TOOLCACHE_VERSION_PATH/x64.complete
touch $GO_TOOLCACHE_VERSION_PATH/$ARCH.complete

View File

@@ -1,4 +1,35 @@
[
{
"version": "1.21.3",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.21.3-6783834942",
"files": [
{
"filename": "go-1.21.3-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.21.3-6783834942/go-1.21.3-darwin-arm64.tar.gz"
},
{
"filename": "go-1.21.3-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.21.3-6783834942/go-1.21.3-darwin-x64.tar.gz"
},
{
"filename": "go-1.21.3-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.21.3-6783834942/go-1.21.3-linux-x64.tar.gz"
},
{
"filename": "go-1.21.3-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.21.3-6783834942/go-1.21.3-win32-x64.zip"
}
]
},
{
"version": "1.21.2",
"stable": true,
@@ -80,6 +111,37 @@
}
]
},
{
"version": "1.20.10",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.20.10-6783968926",
"files": [
{
"filename": "go-1.20.10-darwin-arm64.tar.gz",
"arch": "arm64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.20.10-6783968926/go-1.20.10-darwin-arm64.tar.gz"
},
{
"filename": "go-1.20.10-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.20.10-6783968926/go-1.20.10-darwin-x64.tar.gz"
},
{
"filename": "go-1.20.10-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.20.10-6783968926/go-1.20.10-linux-x64.tar.gz"
},
{
"filename": "go-1.20.10-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.20.10-6783968926/go-1.20.10-win32-x64.zip"
}
]
},
{
"version": "1.20.9",
"stable": true,