Skip to content

Commit

Permalink
deps: upgrade to go1.20.6 for release builds
Browse files Browse the repository at this point in the history
Also make the previous go version supported in the trybot build matrix a
field defined in the repo package.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: I0c4348fba288cb1d6b2f606c006c602b2604c9f3
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/557009
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
  • Loading branch information
myitcv committed Jul 28, 2023
1 parent bcbe967 commit 538eb9c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
uses: actions/setup-go@v4
with:
cache: false
go-version: 1.20.5
go-version: 1.20.6
- name: Setup qemu
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand Down
2 changes: 1 addition & 1 deletion internal/ci/github/trybot.cue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ workflows: trybot: _repo.bashWorkflow & {
_testStrategy: {
"fail-fast": false
matrix: {
"go-version": ["1.19.x", _repo.latestStableGo]
"go-version": [_repo.previousStableGo, _repo.latestStableGo]
runner: [_repo.linuxMachine, _repo.macosMachine, _repo.windowsMachine]
}
}
Expand Down
4 changes: 3 additions & 1 deletion internal/ci/repo/repo.cue
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ linuxMachine: "ubuntu-22.04"
macosMachine: "macos-11"
windowsMachine: "windows-2022"

previousStableGo: "1.19.x"

// Use the latest Go version for extra checks,
// such as running tests with the data race detector.
latestStableGo: "1.20.x"

// Use a specific latest version for release builds.
// Note that we don't want ".x" for the sake of reproducibility,
// so we instead pin a specific Go release.
pinnedReleaseGo: "1.20.5"
pinnedReleaseGo: "1.20.6"

goreleaserVersion: "v1.18.2"

Expand Down

0 comments on commit 538eb9c

Please sign in to comment.