File tree 2 files changed +21
-4
lines changed
2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 69
69
include :
70
70
- os : windows-2019
71
71
arch : -386
72
+ - os : macos-12
73
+ arch : -arm64
72
74
73
75
defaults :
74
76
run :
@@ -119,13 +121,21 @@ jobs:
119
121
run : task go:build-win # GOARCH=amd64 by default on the runners
120
122
if : runner.os == 'Windows' && matrix.arch == '-amd64'
121
123
122
- - name : Build the Agent for macos
124
+ - name : Build the Agent for macos amd 64
123
125
env :
124
126
MACOSX_DEPLOYMENT_TARGET : 10.15 # minimum supported version for mac
125
127
CGO_CFLAGS : -mmacosx-version-min=10.15
126
128
CGO_LDFLAGS : -mmacosx-version-min=10.15
127
129
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
+ run : task go:build-macos-arm64
138
+ if : runner.os == 'macOS' && matrix.arch == '-arm64'
129
139
130
140
- name : Upload artifacts
131
141
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ tasks:
40
40
PROJECT_NAME : arduino-create-agent_cli
41
41
ADDITIONAL_FLAGS : -tags cli
42
42
43
+ go:build-macos-arm64 :
44
+ desc : Build the project for macOS arm64
45
+ env :
46
+ GOOS : " darwin"
47
+ GOARCH : " arm64"
48
+ cmds :
49
+ - task : go:build
50
+
43
51
go:build-win :
44
52
desc : Build the project for win, to build 32bit `export GOARCH=386` and for 64 bit `export GOARCH=amd64` before `task build-win`
45
53
cmds :
84
92
cmds :
85
93
- poetry run pytest tests
86
94
87
- # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/poetry-task/Taskfile.yml
95
+ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/poetry-task/Taskfile.yml
88
96
poetry:install-deps :
89
97
desc : Install dependencies managed by Poetry
90
98
cmds :
@@ -138,7 +146,6 @@ tasks:
138
146
- task : go:vet
139
147
- task : go:lint
140
148
141
-
142
149
vars :
143
150
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/release-go-task/Taskfile.yml
144
151
PROJECT_NAME : arduino-create-agent
You can’t perform that action at this time.
0 commit comments