From b3113f081485df5b5956b581ec7e887de844e555 Mon Sep 17 00:00:00 2001 From: Aatman Date: Fri, 14 Oct 2022 18:36:23 +0530 Subject: [PATCH] chore: multiple goos and goarch releases (#11) --- .github/workflows/binary.yaml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/binary.yaml b/.github/workflows/binary.yaml index 54b716a..4978e02 100644 --- a/.github/workflows/binary.yaml +++ b/.github/workflows/binary.yaml @@ -6,14 +6,24 @@ on: types: [published] jobs: - release: - name: release + releases-matrix: + name: Release Go Binary runs-on: ubuntu-latest + strategy: + matrix: + # build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64 + goos: [linux, windows, darwin] + goarch: ["386", amd64, arm64] + exclude: + - goarch: "386" + goos: darwin + - goarch: arm64 + goos: windows steps: - - uses: actions/checkout@v2 - - uses: wangyoucao577/go-release-action@v1.19 + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1.32 with: github_token: ${{ secrets.GITHUB_TOKEN }} - goos: linux - goarch: amd64 - binary_name: kube2cdk8s + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + binary_name: "kube2cdk8s"