2020-02-26 10:13:39 +00:00
|
|
|
name: Build
|
2021-11-10 02:00:22 +00:00
|
|
|
on: [push, pull_request]
|
2020-02-21 10:19:09 +00:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2021-11-08 20:56:21 +00:00
|
|
|
- name: Set up Go 1.17
|
2021-11-08 20:39:30 +00:00
|
|
|
uses: actions/setup-go@v2
|
2020-02-21 10:19:09 +00:00
|
|
|
with:
|
2021-11-08 20:56:21 +00:00
|
|
|
go-version: 1.17
|
2020-02-21 10:19:09 +00:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Get dependencies
|
|
|
|
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
|
|
|
|
|
2021-11-10 02:21:10 +00:00
|
|
|
- name: Check the build
|
2020-04-14 01:33:25 +00:00
|
|
|
run: |
|
|
|
|
export PATH=${PATH}:`go env GOPATH`/bin
|
|
|
|
scripts/devtools.sh
|
2021-11-08 20:56:21 +00:00
|
|
|
make local build
|