Skip to content

Commit

Permalink
chore: multiple goos and goarch releases (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter-Thompson authored Oct 14, 2022
1 parent 95a9c3d commit b3113f0
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b3113f0

Please sign in to comment.