ci: use go1.20 compiler

This commit is contained in:
Gustavo Iñiguez Goia 2023-10-23 20:32:29 +02:00
parent 1b26acbd21
commit fe181b14dd
Failed to generate hash of commit

View file

@ -17,10 +17,10 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
- name: Set up Go 1.20.10
uses: actions/setup-go@v3
with:
go-version: 1.15
go-version: 1.20.10
id: go
- name: Check out code into the Go module directory
@ -31,21 +31,17 @@ jobs:
sudo apt-get install git libnetfilter-queue-dev libmnl-dev libpcap-dev protobuf-compiler
export GOPATH=~/go
export PATH=$PATH:$GOPATH/bin
go get github.com/golang/protobuf/protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install github.com/golang/protobuf/protoc-gen-go@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
cd proto
make ../daemon/ui/protocol/ui.pb.go
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
cd ../daemon
go mod tidy; go mod vendor
- name: Build
run: |
cd daemon
go mod tidy
go build -v .
- name: Test
run: |