diff options
| author | Alexander <4584443+DragonStuff@users.noreply.github.com> | 2021-08-28 11:01:09 +0900 |
|---|---|---|
| committer | Alexander <4584443+DragonStuff@users.noreply.github.com> | 2021-08-28 11:01:09 +0900 |
| commit | 7107ded3cd7d1ef7ba56e9a8077843d0542b2098 (patch) | |
| tree | 030ce0bb32bccfb79de10a2f99f33204e74807e4 /.github/workflows/binary_test.yml | |
| parent | e73044f1f02c88c5bd43e7fb846399b232a8a4ad (diff) | |
| download | seaweedfs-7107ded3cd7d1ef7ba56e9a8077843d0542b2098.tar.xz seaweedfs-7107ded3cd7d1ef7ba56e9a8077843d0542b2098.zip | |
fix(ci): only cancel previous in-progress workflow of the same group
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' |
