68
68
69
69
unit :
70
70
name : " Unit tests"
71
+ needs : build-lima-and-fill-cache-on-ubuntu
71
72
runs-on : ubuntu-24.04
72
73
timeout-minutes : 30
73
74
strategy :
85
86
fetch-depth : 1
86
87
- uses : ./.github/actions/setup_go_with_cache
87
88
with :
88
- additional-gocache-key : unit
89
89
go-version : ${{ matrix.go-version }}
90
90
runs-on : ubuntu-24.04
91
91
- name : Unit tests
@@ -135,7 +135,6 @@ jobs:
135
135
fetch-depth : 1
136
136
- uses : ./.github/actions/setup_go_with_cache
137
137
with :
138
- additional-gocache-key : windows
139
138
go-version : 1.23.x
140
139
runs-on : windows-2022-8-cores
141
140
- name : Unit tests
@@ -156,15 +155,17 @@ jobs:
156
155
if : always()
157
156
run : type C:\Users\runneradmin\.lima\wsl2\ha.stderr.log
158
157
159
- build-on-macos-12 :
158
+ build-lima-and-fill-cache- on-macos-12 :
160
159
name : " Build on macOS 12"
161
- uses : ./.github/workflows/build .yml
160
+ uses : ./.github/workflows/build_lima_and_fill_cache .yml
162
161
with :
162
+ go-version : 1.23.x
163
163
runs-on : macos-12
164
164
165
165
integration :
166
166
name : Integration tests
167
167
# on macOS 12, the default vmType is QEMU
168
+ needs : build-lima-and-fill-cache-on-macos-12
168
169
runs-on : macos-12
169
170
timeout-minutes : 120
170
171
steps :
@@ -174,7 +175,6 @@ jobs:
174
175
fetch-depth : 0
175
176
- uses : ./.github/actions/setup_go_with_cache
176
177
with :
177
- additional-gocache-key : integration
178
178
go-version : 1.23.x
179
179
runs-on : macos-12
180
180
- name : Unit tests
@@ -221,17 +221,18 @@ jobs:
221
221
if : always()
222
222
run : ./hack/debug-cache.sh
223
223
224
- build-on-ubuntu :
224
+ build-lima-and-fill-cache- on-ubuntu :
225
225
name : " Build on Ubuntu"
226
- uses : ./.github/workflows/build .yml
226
+ uses : ./.github/workflows/build_lima_and_fill_cache .yml
227
227
with :
228
+ go-version : 1.23.x
228
229
runs-on : ubuntu-24.04
229
230
230
231
# Non-default templates are tested on Linux instances of GHA,
231
232
# as they seem more stable than macOS instances.
232
233
integration-linux :
233
234
name : Integration tests (on Linux)
234
- needs : build-on-ubuntu
235
+ needs : build-lima-and-fill-cache- on-ubuntu
235
236
runs-on : ubuntu-24.04
236
237
timeout-minutes : 120
237
238
strategy :
@@ -254,7 +255,7 @@ jobs:
254
255
fetch-depth : 1
255
256
- uses : ./.github/actions/install_lima_from_artifact
256
257
with :
257
- artifact : ${{ needs.build-on-ubuntu.outputs.artifact }}
258
+ artifact : ${{ needs.build-lima-and-fill-cache- on-ubuntu.outputs.artifact }}
258
259
- name : Cache image used by templates/${{ matrix.template }}
259
260
uses : ./.github/actions/setup_cache_for_template
260
261
with :
@@ -288,7 +289,7 @@ jobs:
288
289
289
290
colima :
290
291
name : Colima
291
- needs : build-on-ubuntu
292
+ needs : build-lima-and-fill-cache- on-ubuntu
292
293
runs-on : ubuntu-24.04
293
294
timeout-minutes : 120
294
295
strategy :
@@ -306,7 +307,7 @@ jobs:
306
307
key : ${{ runner.os }}-colima-${{ matrix.colima-version }}
307
308
- uses : ./.github/actions/install_lima_from_artifact
308
309
with :
309
- artifact : ${{ needs.build-on-ubuntu.outputs.artifact }}
310
+ artifact : ${{ needs.build-lima-and-fill-cache- on-ubuntu.outputs.artifact }}
310
311
- name : Checkout colima
311
312
uses : actions/checkout@v4
312
313
with :
@@ -344,7 +345,7 @@ jobs:
344
345
345
346
vmnet :
346
347
name : " VMNet test"
347
- needs : build-on-macos-12
348
+ needs : build-lima-and-fill-cache- on-macos-12
348
349
runs-on : macos-12
349
350
timeout-minutes : 120
350
351
steps :
@@ -353,7 +354,7 @@ jobs:
353
354
fetch-depth : 1
354
355
- uses : ./.github/actions/install_lima_from_artifact
355
356
with :
356
- artifact : ${{ needs.build-on-macos-12.outputs.artifact }}
357
+ artifact : ${{ needs.build-lima-and-fill-cache- on-macos-12.outputs.artifact }}
357
358
- name : " Inject `no_timer_check` to kernel cmdline"
358
359
# workaround to https://github.com/lima-vm/lima/issues/84
359
360
run : ./hack/inject-cmdline-to-template.sh templates/vmnet.yaml no_timer_check
@@ -397,6 +398,7 @@ jobs:
397
398
398
399
upgrade :
399
400
name : " Upgrade test"
401
+ needs : build-lima-and-fill-cache-on-macos-12
400
402
runs-on : macos-12
401
403
timeout-minutes : 120
402
404
strategy :
@@ -438,15 +440,16 @@ jobs:
438
440
- if : always()
439
441
uses : ./.github/actions/upload_failure_logs_if_exists
440
442
441
- build-on-macos-13 :
443
+ build-lima-and-fill-cache- on-macos-13 :
442
444
name : " Build on macOS 13"
443
- uses : ./.github/workflows/build .yml
445
+ uses : ./.github/workflows/build_lima_and_fill_cache .yml
444
446
with :
447
+ go-version : 1.23.x
445
448
runs-on : macos-13
446
449
447
450
vz :
448
451
name : " vz"
449
- needs : build-on-macos-13
452
+ needs : build-lima-and-fill-cache- on-macos-13
450
453
# on macOS 13, the default vmType is VZ
451
454
runs-on : macos-13
452
455
timeout-minutes : 120
@@ -462,7 +465,7 @@ jobs:
462
465
fetch-depth : 1
463
466
- uses : ./.github/actions/install_lima_from_artifact
464
467
with :
465
- artifact : ${{ needs.build-on-macos-13.outputs.artifact }}
468
+ artifact : ${{ needs.build-lima-and-fill-cache- on-macos-13.outputs.artifact }}
466
469
- name : Cache image used by templates/${{ matrix.template }}
467
470
uses : ./.github/actions/setup_cache_for_template
468
471
with :
0 commit comments