Skip to content

Commit 3fceb6d

Browse files
committed
chore: Split mac build into arm64 and amd64
1 parent 690bec6 commit 3fceb6d

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,49 @@ jobs:
4242
asset-name: ccmanager-${{ matrix.goos }}-${{ matrix.goarch }}
4343
file: ccmanager
4444

45+
# Separate mac amd64 build to support fsevents dependency
46+
buildmacamd64:
47+
runs-on: macos-13
48+
strategy:
49+
matrix:
50+
goos:
51+
- darwin
52+
goarch:
53+
- amd64
54+
55+
env:
56+
GOOS: ${{ matrix.goos }}
57+
GOARCH: ${{ matrix.goarch }}
58+
59+
steps:
60+
- uses: actions/checkout@v3
61+
62+
- name: Set up Go
63+
uses: actions/setup-go@v3
64+
with:
65+
go-version: "1.21"
66+
67+
- name: Build
68+
run: go build -o ccmanager cmd/ccmanager.go
69+
70+
- name: Release file
71+
uses: djnicholson/release-action@v2.10
72+
with:
73+
token: ${{ secrets.GITHUB_TOKEN }}
74+
release-name: ${{ github.event.release.name }}
75+
tag-name: ${{ github.event.release.tag_name }}
76+
asset-name: ccmanager-${{ matrix.goos }}-${{ matrix.goarch }}
77+
file: ccmanager
78+
79+
4580
# Separate mac build to support fsevents dependency
46-
buildmac:
81+
buildmacarm64:
4782
runs-on: macos-14 # beta arm runner
4883
strategy:
4984
matrix:
5085
goos:
5186
- darwin
5287
goarch:
53-
- amd64
5488
- arm64
5589

5690
env:

0 commit comments

Comments
 (0)