Skip to content

Commit 73730ce

Browse files
committed
Add macos x64 and arm64 builds
1 parent b8b00cb commit 73730ce

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
retention-days: 7
2727
name: c8x-linux-x86_64
2828
path: ./c8x-linux-x86_64
29-
build-macos:
29+
build-macos-x64:
3030
if: startsWith(github.ref, 'refs/tags/')
31-
runs-on: macos-latest
31+
runs-on: macos-latest-large
3232
steps:
3333
- uses: actions/checkout@v4
3434
- name: Set up Go
@@ -43,6 +43,23 @@ jobs:
4343
retention-days: 7
4444
name: c8x-darwin-x86_64
4545
path: ./c8x-darwin-x86_64
46+
build-macos-arm:
47+
if: startsWith(github.ref, 'refs/tags/')
48+
runs-on: macos-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
- name: Set up Go
52+
uses: actions/setup-go@v5
53+
with:
54+
go-version: '1.23'
55+
- name: Build
56+
run: go build -o c8x-darwin-arm64 .
57+
- name: Upload Go test results
58+
uses: actions/upload-artifact@v4
59+
with:
60+
retention-days: 7
61+
name: c8x-darwin-x86_64
62+
path: ./c8x-darwin-x86_64
4663
build-windows:
4764
if: startsWith(github.ref, 'refs/tags/')
4865
runs-on: windows-latest
@@ -67,7 +84,8 @@ jobs:
6784
needs:
6885
- build-windows
6986
- build-linux
70-
- build-macos
87+
- build-macos-arm
88+
- build-macos-x64
7189
runs-on: ubuntu-latest
7290
steps:
7391
# Downloads all artifacts:

0 commit comments

Comments
 (0)