Skip to content

Commit

Permalink
separate darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben Youssef committed Feb 21, 2024
1 parent 453f8f9 commit 80d8217
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:


jobs:
releases-matrix:
releases-matrix-linux-windows:
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: [ windows ]
goos: [ linux, windows ]
goarch: [ amd64, arm64 ]
exclude:
- goarch: arm64
Expand Down Expand Up @@ -40,3 +40,36 @@ jobs:
goarch: ${{ matrix.goarch }}
goversion: "1.20"
project_path: ./cmd/flow

releases-matrix-darwin:
name: Release Go Binary
runs-on: macos-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [ darwin ]
goarch: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v3
- name: Codebase security check
continue-on-error: true
uses: snyk/actions/golang@master
with:
go-version: '1.20'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- uses: wangyoucao577/go-release-action@v1.40
env:
MIXPANEL_PROJECT_TOKEN: ${{ secrets.MIXPANEL_PROJECT_TOKEN }}
LILICO_TOKEN: ${{ secrets.LILICO_TOKEN }}
APP_VERSION: $(basename ${GITHUB_REF})
BUILD_TIME: $(date --iso-8601=seconds)
VERSION: ${{github.ref_name}}
COMMIT: ${{ github.sha }}
with:
pre_command: make generate && make install-cross-build-tools && source pre_build.sh
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.20"
project_path: ./cmd/flow

0 comments on commit 80d8217

Please sign in to comment.