67
67
68
68
unit :
69
69
name : " Unit tests"
70
+ needs : build-lima-and-fill-cache-on-ubuntu
70
71
runs-on : ubuntu-24.04
71
72
timeout-minutes : 30
72
73
strategy :
84
85
fetch-depth : 1
85
86
- uses : ./.github/actions/setup_go_with_cache
86
87
with :
87
- additional-gocache-key : unit
88
88
go-version : ${{ matrix.go-version }}
89
89
runs-on : ubuntu-24.04
90
90
- name : Unit tests
@@ -130,7 +130,6 @@ jobs:
130
130
fetch-depth : 1
131
131
- uses : ./.github/actions/setup_go_with_cache
132
132
with :
133
- additional-gocache-key : windows
134
133
go-version : 1.23.x
135
134
runs-on : windows-2022-8-cores
136
135
- name : Unit tests
@@ -151,15 +150,17 @@ jobs:
151
150
if : always()
152
151
run : type C:\Users\runneradmin\.lima\wsl2\ha.stderr.log
153
152
154
- build-on-macos-12 :
153
+ build-lima-and-fill-cache- on-macos-12 :
155
154
name : " Build on macOS 12"
156
- uses : ./.github/workflows/build .yml
155
+ uses : ./.github/workflows/build_lima_and_fill_cache .yml
157
156
with :
157
+ go-version : 1.23.x
158
158
runs-on : macos-12
159
159
160
160
integration :
161
161
name : Integration tests
162
162
# on macOS 12, the default vmType is QEMU
163
+ needs : build-lima-and-fill-cache-on-macos-12
163
164
runs-on : macos-12
164
165
timeout-minutes : 120
165
166
steps :
@@ -168,7 +169,6 @@ jobs:
168
169
fetch-depth : 1
169
170
- uses : ./.github/actions/setup_go_with_cache
170
171
with :
171
- additional-gocache-key : integration
172
172
go-version : 1.23.x
173
173
runs-on : macos-12
174
174
- name : Unit tests
@@ -215,17 +215,18 @@ jobs:
215
215
if : always()
216
216
run : ./hack/debug-cache.sh
217
217
218
- build-on-ubuntu :
218
+ build-lima-and-fill-cache- on-ubuntu :
219
219
name : " Build on Ubuntu"
220
- uses : ./.github/workflows/build .yml
220
+ uses : ./.github/workflows/build_lima_and_fill_cache .yml
221
221
with :
222
+ go-version : 1.23.x
222
223
runs-on : ubuntu-24.04
223
224
224
225
# Non-default templates are tested on Linux instances of GHA,
225
226
# as they seem more stable than macOS instances.
226
227
integration-linux :
227
228
name : Integration tests (on Linux)
228
- needs : build-on-ubuntu
229
+ needs : build-lima-and-fill-cache- on-ubuntu
229
230
runs-on : ubuntu-24.04
230
231
timeout-minutes : 120
231
232
strategy :
@@ -248,7 +249,7 @@ jobs:
248
249
fetch-depth : 1
249
250
- uses : ./.github/actions/install_lima_from_artifact
250
251
with :
251
- artifact : ${{ needs.build-on-ubuntu.outputs.artifact }}
252
+ artifact : ${{ needs.build-lima-and-fill-cache- on-ubuntu.outputs.artifact }}
252
253
- name : Cache image used by templates/${{ matrix.template }}
253
254
uses : ./.github/actions/setup_cache_for_template
254
255
with :
@@ -282,7 +283,7 @@ jobs:
282
283
283
284
colima :
284
285
name : Colima
285
- needs : build-on-ubuntu
286
+ needs : build-lima-and-fill-cache- on-ubuntu
286
287
runs-on : ubuntu-24.04
287
288
timeout-minutes : 120
288
289
strategy :
@@ -300,7 +301,7 @@ jobs:
300
301
key : ${{ runner.os }}-colima-${{ matrix.colima-version }}
301
302
- uses : ./.github/actions/install_lima_from_artifact
302
303
with :
303
- artifact : ${{ needs.build-on-ubuntu.outputs.artifact }}
304
+ artifact : ${{ needs.build-lima-and-fill-cache- on-ubuntu.outputs.artifact }}
304
305
- name : Checkout colima
305
306
uses : actions/checkout@v4
306
307
with :
@@ -338,7 +339,7 @@ jobs:
338
339
339
340
vmnet :
340
341
name : " VMNet test"
341
- needs : build-on-macos-12
342
+ needs : build-lima-and-fill-cache- on-macos-12
342
343
runs-on : macos-12
343
344
timeout-minutes : 120
344
345
steps :
@@ -347,7 +348,7 @@ jobs:
347
348
fetch-depth : 1
348
349
- uses : ./.github/actions/install_lima_from_artifact
349
350
with :
350
- artifact : ${{ needs.build-on-macos-12.outputs.artifact }}
351
+ artifact : ${{ needs.build-lima-and-fill-cache- on-macos-12.outputs.artifact }}
351
352
- name : " Inject `no_timer_check` to kernel cmdline"
352
353
# workaround to https://github.com/lima-vm/lima/issues/84
353
354
run : ./hack/inject-cmdline-to-template.sh templates/vmnet.yaml no_timer_check
@@ -391,6 +392,7 @@ jobs:
391
392
392
393
upgrade :
393
394
name : " Upgrade test"
395
+ needs : build-lima-and-fill-cache-on-macos-12
394
396
runs-on : macos-12
395
397
timeout-minutes : 120
396
398
strategy :
@@ -420,15 +422,16 @@ jobs:
420
422
- if : always()
421
423
uses : ./.github/actions/upload_failure_logs_if_exists
422
424
423
- build-on-macos-13 :
425
+ build-lima-and-fill-cache- on-macos-13 :
424
426
name : " Build on macOS 13"
425
- uses : ./.github/workflows/build .yml
427
+ uses : ./.github/workflows/build_lima_and_fill_cache .yml
426
428
with :
429
+ go-version : 1.23.x
427
430
runs-on : macos-13
428
431
429
432
vz :
430
433
name : " vz"
431
- needs : build-on-macos-13
434
+ needs : build-lima-and-fill-cache- on-macos-13
432
435
# on macOS 13, the default vmType is VZ
433
436
runs-on : macos-13
434
437
timeout-minutes : 120
@@ -444,7 +447,7 @@ jobs:
444
447
fetch-depth : 1
445
448
- uses : ./.github/actions/install_lima_from_artifact
446
449
with :
447
- artifact : ${{ needs.build-on-macos-13.outputs.artifact }}
450
+ artifact : ${{ needs.build-lima-and-fill-cache- on-macos-13.outputs.artifact }}
448
451
- name : Cache image used by templates/${{ matrix.template }}
449
452
uses : ./.github/actions/setup_cache_for_template
450
453
with :
0 commit comments