Skip to content

Commit

Permalink
ci: update Go workflows to use actions/setup-go@v4 and support Go 1.21
Browse files Browse the repository at this point in the history
- Update the `go.yml` workflow to use `actions/setup-go@v4` instead of `actions/setup-go@v3`
- Add `1.21` as a supported version of Go in the `go.yml` workflow
- Update the `goreleaser.yml` workflow to use `actions/setup-go@v4` instead of `actions/setup-go@v2`
- Change the Go version in the `goreleaser.yml` workflow to `1.17`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Aug 9, 2023
1 parent 725810f commit 2022ba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.16'
- name: Checkout repository
Expand All @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.18, 1.19, '1.20']
go: [1.18, 1.19, '1.20', 1.21]
include:
- os: ubuntu-latest
go-build: ~/.cache/go-build
Expand All @@ -39,7 +39,7 @@ jobs:
GOPROXY: https://proxy.golang.org
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.17
-
Expand Down

0 comments on commit 2022ba3

Please sign in to comment.