diff options
Diffstat (limited to '.github/workflows/binary_test.yml')
| -rw-r--r-- | .github/workflows/binary_test.yml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/binary_test.yml b/.github/workflows/binary_test.yml new file mode 100644 index 000000000..467332359 --- /dev/null +++ b/.github/workflows/binary_test.yml @@ -0,0 +1,50 @@ +name: Cross-platform binary build test + +on: + push: + pull_request: + workflow_dispatch: [] + +concurrency: + group: ${{ github.head_ref }}/binary_test + cancel-in-progress: true + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows, darwin, freebsd, netbsd, openbsd] + goarch: [amd64, arm, arm64, 386, ppc64le, s390x] + exclude: + - goarch: arm + goos: darwin + - goarch: 386 + goos: darwin + - goarch: ppc64le + goos: darwin + - goarch: s390x + goos: darwin + - goarch: arm + goos: windows + - goarch: arm64 + goos: windows + - goarch: ppc64le + goos: windows + - goarch: s390x + goos: windows + + steps: + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Go cross-platform build test + uses: thatisuday/go-cross-build@v1 + with: + platforms: ${{ matrix.goos }}/${{ matrix.goarch }} + package: 'weed' + name: 'weed' + dest: '/tmp/dist' |
