Skip to content

Commit

Permalink
Support and test Go 1.22
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <chrisko@google.com>
  • Loading branch information
hugelgupf committed Feb 9, 2024
1 parent 6e252cf commit 2610ae5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
43 changes: 40 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ templates:
docker:
- image: cimg/go:1.21

go122-template: &go122-template
docker:
- image: cimg/go:1.22

build-gomod-template: &build-gomod-template
steps:
- checkout
Expand Down Expand Up @@ -89,6 +93,10 @@ workflows:
requires:
- clean-makebb
- clean-gopath
- build-gopath-go122:
requires:
- clean-makebb
- clean-gopath
- test-go120:
requires:
- clean-makebb
Expand All @@ -99,6 +107,11 @@ workflows:
- clean-makebb
- clean-gopath
- clean-gomod
- test-go122:
requires:
- clean-makebb
- clean-gopath
- clean-gomod
- build-gomod-go120:
requires:
- clean-makebb
Expand All @@ -107,6 +120,10 @@ workflows:
requires:
- clean-makebb
- clean-gomod
- build-gomod-go122:
requires:
- clean-makebb
- clean-gomod
- build-gomod-multi-go120:
requires:
- clean-makebb
Expand All @@ -115,6 +132,10 @@ workflows:
requires:
- clean-makebb
- clean-gomod
- build-gomod-multi-go122:
requires:
- clean-makebb
- clean-gomod
nightly:
triggers:
- schedule:
Expand All @@ -126,16 +147,20 @@ workflows:
jobs:
- build-gopath-go120
- build-gopath-go121
- build-gopath-go122
- test-go120
- test-go121
- test-go122
- build-gomod-go120
- build-gomod-go121
- build-gomod-go122
- build-gomod-multi-go120
- build-gomod-multi-go121
- build-gomod-multi-go122

jobs:
clean-makebb:
<<: [*go121-template, *gomod-template]
<<: [*go122-template, *gomod-template]
steps:
- checkout
- run:
Expand All @@ -156,7 +181,7 @@ jobs:
fi
clean-gopath:
<<: [*go121-template, *gopath-template]
<<: [*go122-template, *gopath-template]
steps:
- checkout
- run:
Expand All @@ -171,14 +196,20 @@ jobs:
build-gopath-go121:
<<: [*go121-template, *gopath-template, *build-gopath-template]

build-gopath-go122:
<<: [*go122-template, *gopath-template, *build-gopath-template]

test-go120:
<<: [*go120-template, *gopath-template, *test-template]

test-go121:
<<: [*go121-template, *gopath-template, *test-template]

test-go122:
<<: [*go122-template, *gopath-template, *test-template]

clean-gomod:
<<: [*go121-template, *gomod-template]
<<: [*go122-template, *gomod-template]
steps:
- checkout
- run:
Expand Down Expand Up @@ -235,8 +266,14 @@ jobs:
build-gomod-go121:
<<: [*go121-template, *gomod-template, *build-gomod-template]

build-gomod-go122:
<<: [*go122-template, *gomod-template, *build-gomod-template]

build-gomod-multi-go120:
<<: [*go120-template, *gomod-template, *build-gomod-multi-template]

build-gomod-multi-go121:
<<: [*go121-template, *gomod-template, *build-gomod-multi-template]

build-gomod-multi-go122:
<<: [*go122-template, *gomod-template, *build-gomod-multi-template]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ determine which command is being called.

| Feature | Support status |
| ---------- | ----------------------------------------------------- |
| Go version | Tested are 1.20-1.21 |
| Go version | Tested are 1.20-1.22 |
| Packaging | Go modules, Go vendoring |
| `GOOS` | linux (others may work, but untested) |
| `GOARCH` | amd64, arm, arm64, riscv64 (others may work, but untested) |
Expand Down

0 comments on commit 2610ae5

Please sign in to comment.