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