From: Nahum Shalman Date: Wed, 19 Jan 2022 02:29:44 +0000 (-0500) Subject: Run cross-compilation builds on every push (#420) X-Git-Tag: v1.7.2~130 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=c11d74b532c119e42328e596d5a6b6605706662d;p=fsnotify.git Run cross-compilation builds on every push (#420) This would have caught #389 and should catch build failures for supported targets. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..04d6213 --- /dev/null +++ b/.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