From fd32275f702ba37b81375c458f0f2254352c6387 Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Thu, 20 May 2021 17:47:22 -0400 Subject: [PATCH] ci: add github actions workflow to build on commit --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b694fd3 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 }}