Skip to content

Commit

Permalink
ci: use go1.20 compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-iniguez-goya committed Oct 23, 2023
1 parent 1b26acb commit fe181b1
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit fe181b1

Please sign in to comment.