@@ -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
# on macOS 12, the default vmType is QEMU
@@ -202,10 +208,17 @@ jobs:
202
208
if : always()
203
209
run : ./hack/debug-cache.sh
204
210
211
+ build-on-ubuntu :
212
+ name : " Build on Ubuntu"
213
+ uses : ./.github/workflows/build.yml
214
+ with :
215
+ runs-on : ubuntu-24.04
216
+
205
217
# Non-default templates are tested on Linux instances of GHA,
206
218
# as they seem more stable than macOS instances.
207
219
integration-linux :
208
220
name : Integration tests (on Linux)
221
+ needs : build-on-ubuntu
209
222
runs-on : ubuntu-24.04
210
223
timeout-minutes : 120
211
224
strategy :
@@ -226,13 +239,9 @@ jobs:
226
239
- uses : actions/checkout@v4
227
240
with :
228
241
fetch-depth : 1
229
- - uses : actions/setup-go@v5
242
+ - uses : ./.github/ actions/install_lima_from_artifact
230
243
with :
231
- go-version : 1.23.x
232
- - name : Make
233
- run : make
234
- - name : Install
235
- run : sudo make install
244
+ artifact : ${{ needs.build-on-ubuntu.outputs.artifact }}
236
245
- name : Cache image used by templates/${{ matrix.template }}
237
246
uses : ./.github/actions/setup_cache_for_template
238
247
with :
@@ -266,6 +275,7 @@ jobs:
266
275
267
276
colima :
268
277
name : Colima
278
+ needs : build-on-ubuntu
269
279
runs-on : ubuntu-24.04
270
280
timeout-minutes : 120
271
281
strategy :
@@ -284,10 +294,9 @@ jobs:
284
294
with :
285
295
path : ~/.cache/lima/download
286
296
key : ${{ runner.os }}-colima-${{ matrix.colima-version }}
287
- - name : Make
288
- run : make
289
- - name : Install
290
- run : sudo make install
297
+ - uses : ./.github/actions/install_lima_from_artifact
298
+ with :
299
+ artifact : ${{ needs.build-on-ubuntu.outputs.artifact }}
291
300
- name : Install colima
292
301
run : |
293
302
git clone https://github.com/abiosoft/colima
@@ -316,22 +325,20 @@ jobs:
316
325
317
326
vmnet :
318
327
name : " VMNet test"
328
+ needs : build-on-macos-12
319
329
runs-on : macos-12
320
330
timeout-minutes : 120
321
331
steps :
322
332
- uses : actions/checkout@v4
323
333
with :
324
334
fetch-depth : 1
325
- - uses : actions/setup-go@v5
335
+ - uses : ./.github/ actions/install_lima_from_artifact
326
336
with :
327
- go-version : 1.23.x
328
- - name : Make
329
- run : make
330
- - name : Install
331
- run : make install
337
+ artifact : ${{ needs.build-on-macos-12.outputs.artifact }}
332
338
- name : " Inject `no_timer_check` to kernel cmdline"
333
339
# workaround to https://github.com/lima-vm/lima/issues/84
334
340
run : ./hack/inject-cmdline-to-template.sh templates/vmnet.yaml no_timer_check
341
+
335
342
- name : Cache image used by vmnet.yaml
336
343
uses : ./.github/actions/setup_cache_for_template
337
344
with :
@@ -394,8 +401,15 @@ jobs:
394
401
- if : always()
395
402
uses : ./.github/actions/upload_failure_logs_if_exists
396
403
404
+ build-on-macos-13 :
405
+ name : " Build on macOS 13"
406
+ uses : ./.github/workflows/build.yml
407
+ with :
408
+ runs-on : macos-13
409
+
397
410
vz :
398
411
name : " vz"
412
+ needs : build-on-macos-13
399
413
# on macOS 13, the default vmType is VZ
400
414
runs-on : macos-13
401
415
timeout-minutes : 120
@@ -409,13 +423,9 @@ jobs:
409
423
- uses : actions/checkout@v4
410
424
with :
411
425
fetch-depth : 1
412
- - uses : actions/setup-go@v5
426
+ - uses : ./.github/ actions/install_lima_from_artifact
413
427
with :
414
- go-version : 1.23.x
415
- - name : Make
416
- run : make
417
- - name : Install
418
- run : make install
428
+ artifact : ${{ needs.build-on-macos-13.outputs.artifact }}
419
429
- name : Cache image used by templates/${{ matrix.template }}
420
430
uses : ./.github/actions/setup_cache_for_template
421
431
with :
0 commit comments