ci: add github actions workflow to build on commit

pull/59/head
sammyette 2021-05-20 17:47:22 -04:00
parent 08a3e75fd1
commit fd32275f70
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 35 additions and 0 deletions

35
.github/workflows/build.yml vendored 100644
View File

@ -0,0 +1,35 @@
on:
push:
branches:
- master
- dev
pull_request:
branches:
- dev
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64
goos:
- linux
- windows
- darwin
goarch:
- "386"
- amd64
exclude:
- goarch: "386"
goos: darwin
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.17
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
extra_files: LICENSE README.md
asset_name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}