Skip to content

Commit 1707146

Browse files
Add macos-arm64 to the test builds
1 parent d4f2ef2 commit 1707146

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/publish-go-tester-task.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
include:
7070
- os: windows-2019
7171
arch: -386
72+
- os: macos-12
73+
arch: -arm64
7274

7375
defaults:
7476
run:
@@ -119,13 +121,22 @@ jobs:
119121
run: task go:build-win # GOARCH=amd64 by default on the runners
120122
if: runner.os == 'Windows' && matrix.arch == '-amd64'
121123

122-
- name: Build the Agent for macos
124+
- name: Build the Agent for macos amd 64
123125
env:
124126
MACOSX_DEPLOYMENT_TARGET: 10.15 # minimum supported version for mac
125127
CGO_CFLAGS: -mmacosx-version-min=10.15
126128
CGO_LDFLAGS: -mmacosx-version-min=10.15
127129
run: task go:build
128-
if: runner.os == 'macOS'
130+
if: runner.os == 'macOS' && matrix.arch == '-amd64'
131+
132+
- name: Build the Agent for macos arm64
133+
env:
134+
MACOSX_DEPLOYMENT_TARGET: 10.15 # minimum supported version for mac
135+
CGO_CFLAGS: -mmacosx-version-min=10.15
136+
CGO_LDFLAGS: -mmacosx-version-min=10.15
137+
GOARCH: arm64
138+
run: task go:build
139+
if: runner.os == 'macOS' && matrix.arch == '-arm64'
129140

130141
- name: Upload artifacts
131142
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)