@@ -146,6 +146,12 @@ jobs:
146
146
if : always()
147
147
run : type C:\Users\runneradmin\.lima\wsl2\ha.stderr.log
148
148
149
+ build-on-macos-12 :
150
+ name : " Build on macOS 12"
151
+ uses : ./.github/workflows/build.yml
152
+ with :
153
+ runs-on : macos-12
154
+
149
155
integration :
150
156
name : Integration tests
151
157
runs-on : macos-12
@@ -198,10 +204,17 @@ jobs:
198
204
if : always()
199
205
run : ./hack/debug-cache.sh
200
206
207
+ build-on-ubuntu :
208
+ name : " Build on Ubuntu"
209
+ uses : ./.github/workflows/build.yml
210
+ with :
211
+ runs-on : ubuntu-22.04
212
+
201
213
# Non-default templates are tested on Linux instances of GHA,
202
214
# as they seem more stable than macOS instances.
203
215
integration-linux :
204
216
name : Integration tests (on Linux)
217
+ needs : build-on-ubuntu
205
218
runs-on : ubuntu-22.04
206
219
timeout-minutes : 120
207
220
strategy :
@@ -222,13 +235,9 @@ jobs:
222
235
- uses : actions/checkout@v4
223
236
with :
224
237
fetch-depth : 1
225
- - uses : actions/setup-go@v5
238
+ - uses : ./.github/ actions/install_lima_from_artifact
226
239
with :
227
- go-version : 1.22.x
228
- - name : Make
229
- run : make
230
- - name : Install
231
- run : sudo make install
240
+ artifact : ${{ needs.build-on-ubuntu.outputs.artifact }}
232
241
- name : Cache image used by templates/${{ matrix.template }}
233
242
uses : ./.github/actions/setup_cache_for_template
234
243
with :
@@ -262,6 +271,7 @@ jobs:
262
271
263
272
colima :
264
273
name : Colima
274
+ needs : build-on-ubuntu
265
275
runs-on : ubuntu-22.04
266
276
timeout-minutes : 120
267
277
strategy :
@@ -280,10 +290,9 @@ jobs:
280
290
with :
281
291
path : ~/.cache/lima/download
282
292
key : ${{ runner.os }}-colima-${{ matrix.colima-version }}
283
- - name : Make
284
- run : make
285
- - name : Install
286
- run : sudo make install
293
+ - uses : ./.github/actions/install_lima_from_artifact
294
+ with :
295
+ artifact : ${{ needs.build-on-ubuntu.outputs.artifact }}
287
296
- name : Install colima
288
297
run : |
289
298
git clone https://github.com/abiosoft/colima
@@ -312,19 +321,16 @@ jobs:
312
321
313
322
vmnet :
314
323
name : " VMNet test"
324
+ needs : build-on-macos-12
315
325
runs-on : macos-12
316
326
timeout-minutes : 120
317
327
steps :
318
328
- uses : actions/checkout@v4
319
329
with :
320
330
fetch-depth : 1
321
- - uses : actions/setup-go@v5
331
+ - uses : ./.github/ actions/install_lima_from_artifact
322
332
with :
323
- go-version : 1.22.x
324
- - name : Make
325
- run : make
326
- - name : Install
327
- run : make install
333
+ artifact : ${{ needs.build-on-macos-12.outputs.artifact }}
328
334
- name : Cache image used by vmnet.yaml
329
335
uses : ./.github/actions/setup_cache_for_template
330
336
with :
@@ -388,8 +394,15 @@ jobs:
388
394
- if : always()
389
395
uses : ./.github/actions/upload_failure_logs_if_exists
390
396
397
+ build-on-macos-13 :
398
+ name : " Build on macOS 13"
399
+ uses : ./.github/workflows/build.yml
400
+ with :
401
+ runs-on : macos-13
402
+
391
403
vz :
392
404
name : " vz"
405
+ needs : build-on-macos-13
393
406
runs-on : macos-13
394
407
timeout-minutes : 120
395
408
strategy :
@@ -402,13 +415,9 @@ jobs:
402
415
- uses : actions/checkout@v4
403
416
with :
404
417
fetch-depth : 1
405
- - uses : actions/setup-go@v5
418
+ - uses : ./.github/ actions/install_lima_from_artifact
406
419
with :
407
- go-version : 1.22.x
408
- - name : Make
409
- run : make
410
- - name : Install
411
- run : make install
420
+ artifact : ${{ needs.build-on-macos-13.outputs.artifact }}
412
421
- name : Cache image used by templates/${{ matrix.template }}
413
422
uses : ./.github/actions/setup_cache_for_template
414
423
with :
0 commit comments