Skip to content

Commit

Permalink
Add macos-arm64 to the test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoPologruto committed Jun 13, 2024
1 parent d4f2ef2 commit 1707146
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/publish-go-tester-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ jobs:
include:
- os: windows-2019
arch: -386
- os: macos-12
arch: -arm64

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

- name: Build the Agent for macos
- name: Build the Agent for macos amd 64
env:
MACOSX_DEPLOYMENT_TARGET: 10.15 # minimum supported version for mac
CGO_CFLAGS: -mmacosx-version-min=10.15
CGO_LDFLAGS: -mmacosx-version-min=10.15
run: task go:build
if: runner.os == 'macOS'
if: runner.os == 'macOS' && matrix.arch == '-amd64'

- name: Build the Agent for macos arm64
env:
MACOSX_DEPLOYMENT_TARGET: 10.15 # minimum supported version for mac
CGO_CFLAGS: -mmacosx-version-min=10.15
CGO_LDFLAGS: -mmacosx-version-min=10.15
GOARCH: arm64
run: task go:build
if: runner.os == 'macOS' && matrix.arch == '-arm64'

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 1707146

Please sign in to comment.