chore: create github golang build workflow

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ 2020-06-29 15:17:32 +08:00
parent eb1a7f89ec
commit 7712b7ac2c

30
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .