2021-08-28 09:54:44 +08:00
|
|
|
name: Cross-platform binary build test
|
2021-08-28 09:53:24 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch: []
|
|
|
|
|
2021-08-28 09:57:13 +08:00
|
|
|
concurrency:
|
2021-08-28 10:01:09 +08:00
|
|
|
group: ${{ github.head_ref }}/binary_test
|
2021-08-28 09:57:13 +08:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-08-28 09:53:24 +08:00
|
|
|
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'
|