Skip to content

Commit 34be694

Browse files
committed
CI: use Go 1.18
Go 1.18 was just released, switch CI to use it. We don't have an urgent need for 1.18 in the library itself, so we can wait a bit before requiring 1.17. This gives users more time to get the new Go via the usual distribution channels.
1 parent 04ab12e commit 34be694

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.semaphore/semaphore.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ blocks:
2525
- sudo sh -c 'swapoff -a && fallocate -l 2G /swapfile && chmod 0600 /swapfile && mkswap /swapfile && swapon /swapfile'
2626
- checkout
2727
- curl -sSfL http://security.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20210119~20.04.2_all.deb -o /tmp/ca-certificates.deb && sudo dpkg -i /tmp/ca-certificates.deb
28-
- sudo mkdir -p /usr/local/golang/1.17 && curl -fL "https://golang.org/dl/go1.17.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local/golang/1.17
29-
- sem-version go 1.17
30-
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1
28+
- sudo mkdir -p /usr/local/golang/1.18 && curl -fL "https://go.dev/dl/go1.18.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local/golang/1.18
29+
- sem-version go 1.18
30+
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.0
3131
- export PATH="$PATH:$(go env GOPATH)/bin"
3232
- cache restore
3333
- go mod tidy
@@ -60,7 +60,7 @@ blocks:
6060
- cache store
6161
- name: Run unit tests on previous stable Go
6262
commands:
63-
- sem-version go 1.16
63+
- sem-version go 1.17
6464
- go test -v ./cmd/bpf2go -run TestRun
6565
- timeout -s KILL 600s ./run-tests.sh 5.10
6666
- name: Run unit tests

0 commit comments

Comments
 (0)