-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub releases to download Go versions. (#58)
- Loading branch information
1 parent
0f551ac
commit 1616116
Showing
10 changed files
with
5,678 additions
and
11,359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,74 @@ | ||
name: go-versions | ||
name: Validate 'setup-go' | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
schedule: | ||
- cron: 0 0 * * * | ||
|
||
jobs: | ||
run: | ||
name: Go | ||
runs-on: ${{ matrix.operating-system }} | ||
local-cache: | ||
name: Setup local-cache version | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macos-latest] | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
go: [1.12, 1.13, 1.14] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup-go ^1.13.6 | ||
uses: ./ | ||
with: | ||
go-version: ^1.13.6 | ||
- name: setup-go ${{ matrix.go }} | ||
uses: ./ | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: validate version | ||
run: go version | grep "go1." | ||
- name: verify go | ||
run: __tests__/verify-go.sh ${{ matrix.go }} | ||
shell: bash | ||
|
||
- name: setup-go 1.13 | ||
uses: ./ | ||
with: | ||
go-version: 1.13 | ||
|
||
- name: validate version | ||
run: go version | grep "go1.13." | ||
setup-versions-from-manifest: | ||
name: Setup ${{ matrix.go }} ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
go: [1.12.16, 1.13.11, 1.14.3] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup-go ${{ matrix.go }} | ||
uses: ./ | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: verify go | ||
run: __tests__/verify-go.sh ${{ matrix.go }} | ||
shell: bash | ||
|
||
- name: setup-go 1.12.9 | ||
setup-versions-from-dist: | ||
name: Setup ${{ matrix.go }} ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
go: [1.7, 1.8.6] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: setup-go ${{ matrix.go }} | ||
uses: ./ | ||
with: | ||
go-version: 1.12.9 | ||
|
||
- name: validate version | ||
run: go version | grep "go1.12.9" | ||
|
||
- name: dump env | ||
go-version: ${{ matrix.go }} | ||
- name: verify go | ||
run: __tests__/verify-go.sh ${{ matrix.go }} | ||
shell: bash | ||
run: | | ||
echo $PATH | ||
echo go versions in tool cache: | ||
echo $(ls $RUNNER_TOOL_CACHE/go) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
[ | ||
{ | ||
"version": "1.12.17", | ||
"stable": true, | ||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.12.17-20200616.21", | ||
"files": [ | ||
{ | ||
"filename": "go-1.12.17-darwin-x64.tar.gz", | ||
"arch": "x64", | ||
"platform": "darwin", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.12.17-20200616.21/go-1.12.17-darwin-x64.tar.gz" | ||
}, | ||
{ | ||
"filename": "go-1.12.17-linux-x64.tar.gz", | ||
"arch": "x64", | ||
"platform": "linux", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.12.17-20200616.21/go-1.12.17-linux-x64.tar.gz" | ||
}, | ||
{ | ||
"filename": "go-1.12.17-win32-x64.zip", | ||
"arch": "x64", | ||
"platform": "win32", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.12.17-20200616.21/go-1.12.17-win32-x64.zip" | ||
} | ||
] | ||
}, | ||
{ | ||
"version": "1.12.16", | ||
"stable": true, | ||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.12.16-20200616.20", | ||
"files": [ | ||
{ | ||
"filename": "go-1.12.16-darwin-x64.tar.gz", | ||
"arch": "x64", | ||
"platform": "darwin", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.12.16-20200616.20/go-1.12.16-darwin-x64.tar.gz" | ||
}, | ||
{ | ||
"filename": "go-1.12.16-linux-x64.tar.gz", | ||
"arch": "x64", | ||
"platform": "linux", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.12.16-20200616.20/go-1.12.16-linux-x64.tar.gz" | ||
}, | ||
{ | ||
"filename": "go-1.12.16-win32-x64.zip", | ||
"arch": "x64", | ||
"platform": "win32", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.12.16-20200616.20/go-1.12.16-win32-x64.zip" | ||
} | ||
] | ||
}, | ||
{ | ||
"version": "1.9.7", | ||
"stable": true, | ||
"release_url": "https://github.com/actions/go-versions/releases/tag/1.9.7-20200616.1", | ||
"files": [ | ||
{ | ||
"filename": "go-1.9.7-darwin-x64.tar.gz", | ||
"arch": "x64", | ||
"platform": "darwin", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.9.7/go-1.9.7-darwin-x64.tar.gz" | ||
}, | ||
{ | ||
"filename": "go-1.9.7-linux-x64.tar.gz", | ||
"arch": "x64", | ||
"platform": "linux", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.9.7/go-1.9.7-linux-x64.tar.gz" | ||
}, | ||
{ | ||
"filename": "go-1.9.7-win32-x64.zip", | ||
"arch": "x64", | ||
"platform": "win32", | ||
"download_url": "https://github.com/actions/go-versions/releases/download/1.9.7/go-1.9.7-win32-x64.zip" | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.