Skip to content

Commit

Permalink
Add support for Go 1.21 (#885)
Browse files Browse the repository at this point in the history
* Add support for `Go 1.21`

Signed-off-by: Michal Biesek <[email protected]>

* add go1.21 guard to fuzz_test.go

* ci: only build last two go versions

* fix workflow yaml syntax error

---------

Signed-off-by: Michal Biesek <[email protected]>
Co-authored-by: Thomas Pelletier <[email protected]>
  • Loading branch information
michalbiesek and pelletier authored Aug 20, 2023
1 parent e183db7 commit fac33d6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- name: Run tests with coverage
run: ./ci.sh coverage -d "${GITHUB_BASE_REF-HEAD}"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
build:
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest']
go: [ '1.19', '1.20' ]
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
go: [ '1.20', '1.21' ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.go }}/${{ matrix.os }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions fuzz_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.18 || go1.19 || go1.20
// +build go1.18 go1.19 go1.20
//go:build go1.18 || go1.19 || go1.20 || go1.21
// +build go1.18 go1.19 go1.20 go1.21

package toml_test

Expand Down
4 changes: 2 additions & 2 deletions ossfuzz/fuzz.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.18 || go1.19 || go1.20
// +build go1.18 go1.19 go1.20
//go:build go1.18 || go1.19 || go1.20 || go1.21
// +build go1.18 go1.19 go1.20 go1.21

package ossfuzz

Expand Down

0 comments on commit fac33d6

Please sign in to comment.