2020-02-26 10:13:39 +00:00
|
|
|
name: Build
|
2021-11-10 02:00:22 +00:00
|
|
|
on: [push, pull_request]
|
2022-04-09 04:55:43 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-02-21 10:19:09 +00:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2022-08-29 04:13:15 +00:00
|
|
|
- name: Set up Go 1.19
|
2022-04-14 22:27:51 +00:00
|
|
|
uses: actions/setup-go@v3
|
2020-02-21 10:19:09 +00:00
|
|
|
with:
|
2022-08-29 04:13:15 +00:00
|
|
|
go-version: 1.19
|
2020-02-21 10:19:09 +00:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
2022-03-10 02:43:36 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-02-21 10:19:09 +00:00
|
|
|
|
|
|
|
- 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
|
2022-01-27 03:22:01 +00:00
|
|
|
shell: bash -l {0}
|
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
|