fix(ci): only cancel previous in-progress workflow of the same group
This commit is contained in:
50
.github/workflows/binary_test.yml
vendored
Normal file
50
.github/workflows/binary_test.yml
vendored
Normal file
@@ -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'
|
||||
Reference in New Issue
Block a user