@@ -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 :
@@ -312,6 +321,7 @@ 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 :
@@ -321,10 +331,9 @@ jobs:
321
331
- uses : actions/setup-go@v5
322
332
with :
323
333
go-version : 1.22.x
324
- - name : Make
325
- run : make
326
- - name : Install
327
- run : make install
334
+ - uses : ./.github/actions/install_lima_from_artifact
335
+ with :
336
+ artifact : ${{ needs.build-on-macos-12.outputs.artifact }}
328
337
- name : Cache image used by vmnet.yaml
329
338
uses : ./.github/actions/setup_cache_for_template
330
339
with :
@@ -388,8 +397,15 @@ jobs:
388
397
- if : always()
389
398
uses : ./.github/actions/upload_failure_logs_if_exists
390
399
400
+ build-on-macos-13 :
401
+ name : " Build on macOS 13"
402
+ uses : ./.github/workflows/build.yml
403
+ with :
404
+ runs-on : macos-13
405
+
391
406
vz :
392
407
name : " vz"
408
+ needs : build-on-macos-13
393
409
runs-on : macos-13
394
410
timeout-minutes : 120
395
411
strategy :
@@ -402,13 +418,9 @@ jobs:
402
418
- uses : actions/checkout@v4
403
419
with :
404
420
fetch-depth : 1
405
- - uses : actions/setup-go@v5
421
+ - uses : ./.github/ actions/install_lima_from_artifact
406
422
with :
407
- go-version : 1.22.x
408
- - name : Make
409
- run : make
410
- - name : Install
411
- run : make install
423
+ artifact : ${{ needs.build-on-macos-13.outputs.artifact }}
412
424
- name : Cache image used by templates/${{ matrix.template }}
413
425
uses : ./.github/actions/setup_cache_for_template
414
426
with :
0 commit comments