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