Skip to content

Commit

Permalink
chore: Split mac build into arm64 and amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Sep 27, 2024
1 parent 690bec6 commit 3fceb6d
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,49 @@ jobs:
asset-name: ccmanager-${{ matrix.goos }}-${{ matrix.goarch }}
file: ccmanager

# Separate mac amd64 build to support fsevents dependency
buildmacamd64:
runs-on: macos-13
strategy:
matrix:
goos:
- darwin
goarch:
- amd64

env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.21"

- name: Build
run: go build -o ccmanager cmd/ccmanager.go

- name: Release file
uses: djnicholson/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-name: ${{ github.event.release.name }}
tag-name: ${{ github.event.release.tag_name }}
asset-name: ccmanager-${{ matrix.goos }}-${{ matrix.goarch }}
file: ccmanager


# Separate mac build to support fsevents dependency
buildmac:
buildmacarm64:
runs-on: macos-14 # beta arm runner
strategy:
matrix:
goos:
- darwin
goarch:
- amd64
- arm64

env:
Expand Down

0 comments on commit 3fceb6d

Please sign in to comment.