Skip to content

Commit

Permalink
Run cross-compilation builds on every push
Browse files Browse the repository at this point in the history
This would have caught fsnotify#389 and should
catch build failures for supported targets.
  • Loading branch information
nshalman committed Jan 17, 2022
1 parent 73c3b57 commit 74f1d6f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,30 @@
name: build
on: push
jobs:
cross-compile-supported:
strategy:
fail-fast: false
matrix:
goos:
- android
- darwin
- freebsd
- ios
- linux
- windows
goarch:
- amd64
- arm64
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v2
with:
go-version: '1.17'

- name: checkout
uses: actions/checkout@v2

- name: build-${{ matrix.goos }}-${{ matrix.goarch }}
run: |
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build

0 comments on commit 74f1d6f

Please sign in to comment.