github action fix

This commit is contained in:
themighty1 2021-02-23 17:51:15 +03:00
parent 484be33b08
commit 9b0f400c5e

View file

@ -18,19 +18,19 @@ jobs:
- name: Get dependencies - name: Get dependencies
run: | run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
sudo apt-get install git libnetfilter-queue-dev libmnl-dev libpcap-dev protobuf-compiler sudo apt-get install git libnetfilter-queue-dev libmnl-dev libpcap-dev protobuf-compiler
- name: Build
run: |
export GOPATH=~/go export GOPATH=~/go
export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOPATH/bin
go get github.com/golang/protobuf/protoc-gen-go go get github.com/golang/protobuf/protoc-gen-go
cd proto cd proto
make ../daemon/ui/protocol/ui.pb.go make ../daemon/ui/protocol/ui.pb.go
cd ../daemon go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: |
cd daemon
go build -v . go build -v .