From c11d74b532c119e42328e596d5a6b6605706662d Mon Sep 17 00:00:00 2001 From: Nahum Shalman Date: Tue, 18 Jan 2022 21:29:44 -0500 Subject: [PATCH] Run cross-compilation builds on every push (#420) This would have caught #389 and should catch build failures for supported targets. --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..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 -- 2.50.1