Skip to content

Commit

Permalink
ci: update to use go1.17.3 and go1.16.10
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Jolly <[email protected]>
Change-Id: Ib287a441049211361bf95cefd83b1f3ef0fcf150
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/526813
Unity-Result: CUEcueckoo <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
  • Loading branch information
myitcv committed Nov 5, 2021
1 parent 437920e commit 9217c4d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.2
go-version: 1.17.3
stable: false
- name: Setup qemu
uses: docker/setup-qemu-action@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
matrix:
go-version:
- 1.15.15
- 1.16.9
- 1.17.2
- 1.16.10
- 1.17.3
os:
- ubuntu-18.04
- macos-10.15
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Test
run: go test ./...
- if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ci/')
&& matrix.go-version == '1.17.2' && matrix.os == 'ubuntu-18.04' }}
&& matrix.go-version == '1.17.3' && matrix.os == 'ubuntu-18.04' }}
name: Test with -race
run: go test -race ./...
- name: gorelease check
Expand Down
13 changes: 6 additions & 7 deletions cmd/cue/cmd/testdata/script/cmd_github.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.2
go-version: 1.17.3
stable: false
- name: Setup qemu
uses: docker/setup-qemu-action@v1
Expand Down Expand Up @@ -185,8 +185,8 @@ jobs:
matrix:
go-version:
- 1.15.15
- 1.16.9
- 1.17.2
- 1.16.10
- 1.17.3
os:
- ubuntu-18.04
- macos-10.15
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
- name: Test
run: go test ./...
- if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ci/')
&& matrix.go-version == '1.17.2' && matrix.os == 'ubuntu-18.04' }}
&& matrix.go-version == '1.17.3' && matrix.os == 'ubuntu-18.04' }}
name: Test with -race
run: go test -race ./...
- name: gorelease check
Expand Down Expand Up @@ -1372,15 +1372,14 @@ _#step: ((_#job & {
_#codeGenGo: "1.15.15"

// Use a specific latest version for release builds
_#latestStableGo: "1.17.2"
_#latestStableGo: "1.17.3"
_#linuxMachine: "ubuntu-18.04"
_#macosMachine: "macos-10.15"
_#windowsMachine: "windows-2019"
_#testStrategy: {
"fail-fast": false
matrix: {
// Use a stable version of 1.14.x for go generate
"go-version": [_#codeGenGo, "1.16.9", _#latestStableGo]
"go-version": [_#codeGenGo, "1.16.10", _#latestStableGo]
os: [_#linuxMachine, _#macosMachine, _#windowsMachine]
}
}
Expand Down
33 changes: 16 additions & 17 deletions cue/testdata/eval/github.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,14 @@ _#step: ((_#job & {
_#codeGenGo: "1.15.15"

// Use a specific latest version for release builds
_#latestStableGo: "1.17.2"
_#latestStableGo: "1.17.3"
_#linuxMachine: "ubuntu-18.04"
_#macosMachine: "macos-10.15"
_#windowsMachine: "windows-2019"
_#testStrategy: {
"fail-fast": false
matrix: {
// Use a stable version of 1.14.x for go generate
"go-version": [_#codeGenGo, "1.16.9", _#latestStableGo]
"go-version": [_#codeGenGo, "1.16.10", _#latestStableGo]
os: [_#linuxMachine, _#macosMachine, _#windowsMachine]
}
}
Expand Down Expand Up @@ -1089,8 +1088,8 @@ import "strings"
matrix: (#struct){
"go-version": (#list){
0: (string){ "1.15.15" }
1: (string){ "1.16.9" }
2: (string){ "1.17.2" }
1: (string){ "1.16.10" }
2: (string){ "1.17.3" }
}
os: (#list){
0: (string){ "ubuntu-18.04" }
Expand Down Expand Up @@ -1144,7 +1143,7 @@ import "strings"
7: (#struct){
name: (string){ "Test with -race" }
run: (string){ "go test -race ./..." }
if: (string){ "${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ci/') && matrix.go-version == '1.17.2' && matrix.os == 'ubuntu-18.04' }}" }
if: (string){ "${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ci/') && matrix.go-version == '1.17.3' && matrix.os == 'ubuntu-18.04' }}" }
}
8: (#struct){
name: (string){ "gorelease check" }
Expand Down Expand Up @@ -1389,7 +1388,7 @@ import "strings"
name: (string){ "Install Go" }
uses: (string){ "actions/setup-go@v2" }
with: (#struct){
"go-version": (string){ "1.17.2" }
"go-version": (string){ "1.17.3" }
stable: (bool){ false }
}
}
Expand Down Expand Up @@ -1670,8 +1669,8 @@ import "strings"
matrix: (#struct){
"go-version": (#list){
0: (string){ "1.15.15" }
1: (string){ "1.16.9" }
2: (string){ "1.17.2" }
1: (string){ "1.16.10" }
2: (string){ "1.17.3" }
}
os: (#list){
0: (string){ "ubuntu-18.04" }
Expand Down Expand Up @@ -1725,7 +1724,7 @@ import "strings"
7: (#struct){
name: (string){ "Test with -race" }
run: (string){ "go test -race ./..." }
if: (string){ "${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ci/') && matrix.go-version == '1.17.2' && matrix.os == 'ubuntu-18.04' }}" }
if: (string){ "${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ci/') && matrix.go-version == '1.17.3' && matrix.os == 'ubuntu-18.04' }}" }
}
8: (#struct){
name: (string){ "gorelease check" }
Expand Down Expand Up @@ -1964,7 +1963,7 @@ import "strings"
name: (string){ "Install Go" }
uses: (string){ "actions/setup-go@v2" }
with: (#struct){
"go-version": (string){ "1.17.2" }
"go-version": (string){ "1.17.3" }
stable: (bool){ false }
}
}
Expand Down Expand Up @@ -2238,7 +2237,7 @@ import "strings"
_#step(:ci): (#struct){
}
_#codeGenGo(:ci): (string){ "1.15.15" }
_#latestStableGo(:ci): (string){ "1.17.2" }
_#latestStableGo(:ci): (string){ "1.17.3" }
_#linuxMachine(:ci): (string){ "ubuntu-18.04" }
_#macosMachine(:ci): (string){ "macos-10.15" }
_#windowsMachine(:ci): (string){ "windows-2019" }
Expand All @@ -2247,8 +2246,8 @@ import "strings"
matrix: (#struct){
"go-version": (#list){
0: (string){ "1.15.15" }
1: (string){ "1.16.9" }
2: (string){ "1.17.2" }
1: (string){ "1.16.10" }
2: (string){ "1.17.3" }
}
os: (#list){
0: (string){ "ubuntu-18.04" }
Expand All @@ -2262,7 +2261,7 @@ import "strings"
name: (string){ "Set go build tags" }
run: (_|_){
// [incomplete] _#setGoBuildTags.run: invalid interpolation: non-concrete value string (type string):
// ./workflows.cue:273:10
// ./workflows.cue:272:10
}
}
_#installGo(:ci): (#struct){
Expand Down Expand Up @@ -2643,7 +2642,7 @@ import "strings"
_,
])[0]
_#codeGenGo: "1.15.15"
_#latestStableGo: "1.17.2"
_#latestStableGo: "1.17.3"
_#linuxMachine: "ubuntu-18.04"
_#macosMachine: "macos-10.15"
_#windowsMachine: "windows-2019"
Expand All @@ -2652,7 +2651,7 @@ import "strings"
matrix: {
"go-version": [
〈2;_#codeGenGo〉,
"1.16.9",
"1.16.10",
〈2;_#latestStableGo〉,
]
os: [
Expand Down
5 changes: 2 additions & 3 deletions internal/ci/workflows.cue
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ _#step: ((_#job & {steps: _}).steps & [_])[0]
_#codeGenGo: "1.15.15"

// Use a specific latest version for release builds
_#latestStableGo: "1.17.2"
_#latestStableGo: "1.17.3"

_#linuxMachine: "ubuntu-18.04"
_#macosMachine: "macos-10.15"
Expand All @@ -356,8 +356,7 @@ _#windowsMachine: "windows-2019"
_#testStrategy: {
"fail-fast": false
matrix: {
// Use a stable version of 1.14.x for go generate
"go-version": [_#codeGenGo, "1.16.9", _#latestStableGo]
"go-version": [_#codeGenGo, "1.16.10", _#latestStableGo]
os: [_#linuxMachine, _#macosMachine, _#windowsMachine]
}
}
Expand Down

0 comments on commit 9217c4d

Please sign in to comment.