mirror of
https://github.com/actions/go-versions.git
synced 2026-01-29 21:48:49 +00:00
Compare commits
6 Commits
1.24.3-148
...
test-macos
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aaad9f0c8c | ||
|
|
c862fccfaf | ||
|
|
a3e5efd44d | ||
|
|
40c37f487c | ||
|
|
a377a0baa6 | ||
|
|
6263527c99 |
2
.github/workflows/build-go-packages.yml
vendored
2
.github/workflows/build-go-packages.yml
vendored
@@ -23,7 +23,7 @@ on:
|
||||
jobs:
|
||||
go:
|
||||
name: Go
|
||||
uses: actions/versions-package-tools/.github/workflows/build-tool-packages.yml@main
|
||||
uses: actions/versions-package-tools/.github/workflows/build-tool-packages.yml@replacemacos-13
|
||||
with:
|
||||
tool-name: "go"
|
||||
tool-version: ${{ inputs.VERSION || '1.19.0' }}
|
||||
|
||||
@@ -10,13 +10,29 @@ Describe "Go" {
|
||||
function Get-UseGoLogs {
|
||||
# GitHub Windows images don't have `HOME` variable
|
||||
$homeDir = $env:HOME ?? $env:HOMEDRIVE
|
||||
$logsFolderPath = Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages" -Resolve
|
||||
$possiblePaths = @(
|
||||
Join-Path -Path $homeDir -ChildPath "actions-runner/cached/_diag/pages"
|
||||
Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages"
|
||||
)
|
||||
|
||||
$logsFolderPath = $possiblePaths | Where-Object { Test-Path $_ } | Select-Object -First 1
|
||||
$resolvedPath = Resolve-Path -Path $logsFolderPath -ErrorAction SilentlyContinue
|
||||
|
||||
$useGoLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
|
||||
$logContent = Get-Content $_.Fullname -Raw
|
||||
return $logContent -match "setup-go@v"
|
||||
} | Select-Object -First 1
|
||||
return $useGoLogFile.Fullname
|
||||
if ($resolvedPath -and -not [string]::IsNullOrEmpty($resolvedPath.Path) -and (Test-Path $resolvedPath.Path)) {
|
||||
$useGoLogFile = Get-ChildItem -Path $resolvedPath | Where-Object {
|
||||
$logContent = Get-Content $_.Fullname -Raw
|
||||
return $logContent -match "setup-go@v"
|
||||
} | Select-Object -First 1
|
||||
|
||||
# Return the file name if a match is found
|
||||
if ($useGoLogFile) {
|
||||
return $useGoLogFile.FullName
|
||||
} else {
|
||||
Write-Error "No matching log file found in the specified path: $($resolvedPath.Path)"
|
||||
}
|
||||
} else {
|
||||
Write-Error "The provided logs folder path is null, empty, or does not exist: $logsFolderPath"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,133 @@
|
||||
[
|
||||
{
|
||||
"version": "1.24.5",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.24.5-16210585985",
|
||||
"files": [
|
||||
{
|
||||
"filename": "go-1.24.5-darwin-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-darwin-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.5-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.5-linux-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-linux-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.5-linux-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-linux-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.5-win32-arm64.zip",
|
||||
"arch": "arm64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-win32-arm64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.5-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.5-16210585985/go-1.24.5-win32-x64.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.24.4",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.24.4-15482447176",
|
||||
"files": [
|
||||
{
|
||||
"filename": "go-1.24.4-darwin-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.4-15482447176/go-1.24.4-darwin-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.4-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.4-15482447176/go-1.24.4-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.4-linux-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.4-15482447176/go-1.24.4-linux-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.4-linux-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.4-15482447176/go-1.24.4-linux-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.4-win32-arm64.zip",
|
||||
"arch": "arm64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.4-15482447176/go-1.24.4-win32-arm64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.4-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.4-15482447176/go-1.24.4-win32-x64.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.24.3",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.24.3-14875263452",
|
||||
"files": [
|
||||
{
|
||||
"filename": "go-1.24.3-darwin-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.3-14875263452/go-1.24.3-darwin-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.3-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.3-14875263452/go-1.24.3-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.3-linux-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.3-14875263452/go-1.24.3-linux-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.3-linux-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.3-14875263452/go-1.24.3-linux-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.3-win32-arm64.zip",
|
||||
"arch": "arm64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.3-14875263452/go-1.24.3-win32-arm64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.24.3-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.24.3-14875263452/go-1.24.3-win32-x64.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.24.2",
|
||||
"stable": true,
|
||||
@@ -128,6 +257,135 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.23.11",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.23.11-16210591255",
|
||||
"files": [
|
||||
{
|
||||
"filename": "go-1.23.11-darwin-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-darwin-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.11-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.11-linux-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-linux-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.11-linux-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-linux-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.11-win32-arm64.zip",
|
||||
"arch": "arm64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-win32-arm64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.11-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.11-16210591255/go-1.23.11-win32-x64.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.23.10",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.23.10-15482449421",
|
||||
"files": [
|
||||
{
|
||||
"filename": "go-1.23.10-darwin-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.10-15482449421/go-1.23.10-darwin-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.10-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.10-15482449421/go-1.23.10-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.10-linux-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.10-15482449421/go-1.23.10-linux-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.10-linux-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.10-15482449421/go-1.23.10-linux-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.10-win32-arm64.zip",
|
||||
"arch": "arm64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.10-15482449421/go-1.23.10-win32-arm64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.10-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.10-15482449421/go-1.23.10-win32-x64.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.23.9",
|
||||
"stable": true,
|
||||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.23.9-14875265214",
|
||||
"files": [
|
||||
{
|
||||
"filename": "go-1.23.9-darwin-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.9-14875265214/go-1.23.9-darwin-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.9-darwin-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.9-14875265214/go-1.23.9-darwin-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.9-linux-arm64.tar.gz",
|
||||
"arch": "arm64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.9-14875265214/go-1.23.9-linux-arm64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.9-linux-x64.tar.gz",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.9-14875265214/go-1.23.9-linux-x64.tar.gz"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.9-win32-arm64.zip",
|
||||
"arch": "arm64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.9-14875265214/go-1.23.9-win32-arm64.zip"
|
||||
},
|
||||
{
|
||||
"filename": "go-1.23.9-win32-x64.zip",
|
||||
"arch": "x64",
|
||||
"platform": "win32",
|
||||
"download_url": "https://github.com/actions/go-versions/releases/download/1.23.9-14875265214/go-1.23.9-win32-x64.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.23.8",
|
||||
"stable": true,
|
||||
|
||||
Reference in New Issue
Block a user