Compare commits
11 Commits
1.14.9-247
...
1.14.12-36
Author | SHA1 | Date | |
---|---|---|---|
|
690124df27 | ||
|
5d20670749 | ||
|
e89bc70e56 | ||
|
889792e4fa | ||
|
eba638186e | ||
|
808755602f | ||
|
72a65bfa06 | ||
|
37c1fbd5d5 | ||
|
f7ed56c974 | ||
|
19f60e7cf5 | ||
|
333033608c |
21
.github/workflows/build-go-packages.yml
vendored
21
.github/workflows/build-go-packages.yml
vendored
@@ -10,19 +10,26 @@ on:
|
|||||||
description: 'Whether to publish releases'
|
description: 'Whether to publish releases'
|
||||||
required: true
|
required: true
|
||||||
default: 'false'
|
default: 'false'
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- 'versions-manifest.json'
|
||||||
|
- 'LICENSE'
|
||||||
|
- '**.md'
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.event.inputs.VERSION }}
|
VERSION: ${{ github.event.inputs.VERSION || '1.15.3' }}
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_go:
|
build_go:
|
||||||
name: Build Go ${{ github.event.inputs.VERSION }} [${{ matrix.platform }}]
|
name: Build Go ${{ github.event.inputs.VERSION || '1.15.3' }} [${{ matrix.platform }}]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
ARTIFACT_NAME: go-${{ github.event.inputs.VERSION }}-${{ matrix.platform }}-x64
|
ARTIFACT_NAME: go-${{ github.event.inputs.VERSION || '1.15.3' }}-${{ matrix.platform }}-x64
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -44,11 +51,11 @@ jobs:
|
|||||||
path: ${{ runner.temp }}/artifact
|
path: ${{ runner.temp }}/artifact
|
||||||
|
|
||||||
test_go:
|
test_go:
|
||||||
name: Test Go ${{ github.event.inputs.VERSION }} [${{ matrix.platform }}]
|
name: Test Go ${{ github.event.inputs.VERSION || '1.15.3' }} [${{ matrix.platform }}]
|
||||||
needs: build_go
|
needs: build_go
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
ARTIFACT_NAME: go-${{ github.event.inputs.VERSION }}-${{ matrix.platform }}-x64
|
ARTIFACT_NAME: go-${{ github.event.inputs.VERSION || '1.15.3' }}-${{ matrix.platform }}-x64
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -89,7 +96,7 @@ jobs:
|
|||||||
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
|
||||||
|
|
||||||
- name: Setup Go ${{ env.VERSION }}
|
- name: Setup Go ${{ env.VERSION }}
|
||||||
uses: actions/setup-go@v2.1.1
|
uses: actions/setup-go@v2.1.3
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.VERSION }}
|
go-version: ${{ env.VERSION }}
|
||||||
|
|
||||||
@@ -110,7 +117,7 @@ jobs:
|
|||||||
|
|
||||||
publish_release:
|
publish_release:
|
||||||
name: Publish release
|
name: Publish release
|
||||||
if: github.event.inputs.PUBLISH_RELEASES == 'true'
|
if: github.event_name == 'workflow_dispatch' && github.event.inputs.PUBLISH_RELEASES == 'true'
|
||||||
needs: test_go
|
needs: test_go
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
2
helpers
2
helpers
Submodule helpers updated: 3b38e3de4c...4b0fa42d99
@@ -57,7 +57,9 @@ Describe "Go" {
|
|||||||
Set-Location -Path $simpleLocation
|
Set-Location -Path $simpleLocation
|
||||||
"go run simple.go" | Should -ReturnZeroExitCode
|
"go run simple.go" | Should -ReturnZeroExitCode
|
||||||
"go build simple.go" | Should -ReturnZeroExitCode
|
"go build simple.go" | Should -ReturnZeroExitCode
|
||||||
"./simple" | Should -ReturnZeroExitCode
|
$compiledPackageName = "simple"
|
||||||
|
if ($IsWindows) { $compiledPackageName += ".exe" }
|
||||||
|
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Run maps code" {
|
It "Run maps code" {
|
||||||
@@ -65,7 +67,9 @@ Describe "Go" {
|
|||||||
Set-Location -Path $mapsLocation
|
Set-Location -Path $mapsLocation
|
||||||
"go run maps.go" | Should -ReturnZeroExitCode
|
"go run maps.go" | Should -ReturnZeroExitCode
|
||||||
"go build maps.go" | Should -ReturnZeroExitCode
|
"go build maps.go" | Should -ReturnZeroExitCode
|
||||||
"./maps" | Should -ReturnZeroExitCode
|
$compiledPackageName = "maps"
|
||||||
|
if ($IsWindows) { $compiledPackageName += ".exe" }
|
||||||
|
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Run methods code" {
|
It "Run methods code" {
|
||||||
@@ -73,6 +77,8 @@ Describe "Go" {
|
|||||||
Set-Location -Path $methodsLocation
|
Set-Location -Path $methodsLocation
|
||||||
"go run methods.go" | Should -ReturnZeroExitCode
|
"go run methods.go" | Should -ReturnZeroExitCode
|
||||||
"go build methods.go" | Should -ReturnZeroExitCode
|
"go build methods.go" | Should -ReturnZeroExitCode
|
||||||
"./methods" | Should -ReturnZeroExitCode
|
$compiledPackageName = "methods"
|
||||||
|
if ($IsWindows) { $compiledPackageName += ".exe" }
|
||||||
|
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,4 +1,79 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "1.15.4",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.15.4-349041590",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.4-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.4-349041590/go-1.15.4-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.4-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.4-349041590/go-1.15.4-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.4-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.4-349041590/go-1.15.4-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.15.3",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.15.3-308043678",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.3-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.3-308043678/go-1.15.3-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.3-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.3-308043678/go-1.15.3-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.3-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.3-308043678/go-1.15.3-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.15.2",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.15.2-247587753",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.2-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.2-247587753/go-1.15.2-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.2-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.2-247587753/go-1.15.2-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.15.2-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.2-247587753/go-1.15.2-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.15.1",
|
"version": "1.15.1",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
@@ -49,6 +124,81 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"version": "1.14.11",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.14.11-349059275",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.11-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.11-349059275/go-1.14.11-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.11-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.11-349059275/go-1.14.11-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.11-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.11-349059275/go-1.14.11-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.14.10",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.14.10-308043811",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.10-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.10-308043811/go-1.14.10-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.10-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.10-308043811/go-1.14.10-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.10-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.10-308043811/go-1.14.10-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.14.9",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/go-versions/releases/tag/1.14.9-247587858",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.9-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.9-247587858/go-1.14.9-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.9-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.9-247587858/go-1.14.9-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "go-1.14.9-win32-x64.zip",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/go-versions/releases/download/1.14.9-247587858/go-1.14.9-win32-x64.zip"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.14.8",
|
"version": "1.14.8",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
|
Reference in New Issue
Block a user