mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
ci: use go1.20 compiler
This commit is contained in:
parent
1b26acbd21
commit
fe181b14dd
1 changed files with 7 additions and 11 deletions
18
.github/workflows/go.yml
vendored
18
.github/workflows/go.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Add table
Reference in a new issue