@@ -59,11 +59,35 @@ jobs:
59
59
- run : |
60
60
go get github.com/antlr4-go/antlr/v4
61
61
go test ./cmd/a2l/...
62
+ test-mac :
63
+ runs-on : macos-latest-xlarge
64
+ needs :
65
+ - generate-antlr-sources
66
+ - generate-grpc-sources
67
+ steps :
68
+ - uses : actions/checkout@v3
69
+ - uses : actions/download-artifact@v3
70
+ with :
71
+ name : antlr4
72
+ path : pkg/a2l/parser
73
+ - uses : actions/download-artifact@v3
74
+ with :
75
+ name : grpc
76
+ path : pkg/a2l
77
+ - name : Set up Go 1.21
78
+ uses : actions/setup-go@v4
79
+ with :
80
+ go-version : " 1.21"
81
+ cache : true
82
+ - run : |
83
+ go get github.com/antlr4-go/antlr/v4
84
+ go test ./cmd/a2l/...
62
85
build-linux :
63
86
runs-on : ubuntu-22.04
64
87
needs :
65
88
- test-linux
66
89
- test-windows
90
+ - test-mac
67
91
steps :
68
92
- uses : actions/checkout@v3
69
93
- uses : actions/download-artifact@v3
88
112
needs :
89
113
- test-linux
90
114
- test-windows
115
+ - test-mac
91
116
steps :
92
117
- uses : actions/checkout@v3
93
118
- uses : actions/download-artifact@v3
@@ -107,6 +132,36 @@ jobs:
107
132
path : |
108
133
*.dll
109
134
*.h
135
+ build-mac :
136
+ runs-on : macos-latest-xlarge
137
+ needs :
138
+ - test-linux
139
+ - test-windows
140
+ - test-mac
141
+ steps :
142
+ - uses : actions/checkout@v3
143
+ - uses : actions/download-artifact@v3
144
+ with :
145
+ name : antlr4
146
+ path : pkg/a2l/parser
147
+ - uses : actions/download-artifact@v3
148
+ with :
149
+ name : grpc
150
+ path : pkg/a2l
151
+ - name : Set up Go 1.21
152
+ uses : actions/setup-go@v4
153
+ with :
154
+ go-version : " 1.21"
155
+ cache : true
156
+ - run : |
157
+ go get github.com/antlr4-go/antlr/v4
158
+ go build --buildmode=c-shared -o a2l_grpc_$(go env GOOS)_$(go env GOARCH).dylib ./cmd/a2l/a2l.go
159
+ - uses : actions/upload-artifact@v3
160
+ with :
161
+ name : mac
162
+ path : |
163
+ *.dylib
164
+ *.h
110
165
export-protobuf-definitions :
111
166
runs-on : ubuntu-22.04
112
167
steps :
@@ -123,6 +178,7 @@ jobs:
123
178
needs :
124
179
- build-linux
125
180
- build-windows
181
+ - build-mac
126
182
- export-protobuf-definitions
127
183
if : startsWith(github.ref, 'refs/tags/v')
128
184
steps :
@@ -136,6 +192,10 @@ jobs:
136
192
with :
137
193
name : windows
138
194
path : a2l_grpc
195
+ - uses : actions/download-artifact@v3
196
+ with :
197
+ name : mac
198
+ path : a2l_grpc
139
199
- uses : actions/download-artifact@v3
140
200
with :
141
201
name : protobuf
0 commit comments