Hilbish/.github/workflows/build.yml

36 lines
795 B
YAML
Raw Normal View History

name: Build
on:
- push
- pull_request
jobs:
build:
name: ${{ matrix.goos }}-${{ matrix.goarch }}
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- name: Checkout sources
uses: actions/checkout@v2
2021-05-20 22:48:16 +00:00
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v2
2021-05-20 22:31:30 +00:00
with:
go-version: '1.16.2'
- name: Build
run: GOARCH=${{ matrix.goarch }} go build
2021-05-20 22:36:36 +00:00
- uses: actions/upload-artifact@v2
with:
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
2021-05-20 22:36:36 +00:00
path: hilbish