@@ -13,12 +13,12 @@ jobs:
13
13
runs-on : ubuntu-22.04
14
14
timeout-minutes : 30
15
15
steps :
16
- - uses : actions/setup-go@v4
17
- with :
18
- go-version : 1.20.x
19
16
- uses : actions/checkout@v3
20
17
with :
21
18
fetch-depth : 1
19
+ - uses : actions/setup-go@v4
20
+ with :
21
+ go-version : 1.20.x
22
22
- name : Run golangci-lint
23
23
24
24
with :
@@ -54,12 +54,12 @@ jobs:
54
54
runs-on : windows-2022
55
55
timeout-minutes : 30
56
56
steps :
57
- - uses : actions/setup-go@v4
58
- with :
59
- go-version : 1.20.x
60
57
- uses : actions/checkout@v3
61
58
with :
62
59
fetch-depth : 1
60
+ - uses : actions/setup-go@v4
61
+ with :
62
+ go-version : 1.20.x
63
63
- name : Unit tests
64
64
run : go test -v ./...
65
65
- name : Make
@@ -70,12 +70,18 @@ jobs:
70
70
runs-on : macos-12
71
71
timeout-minutes : 120
72
72
steps :
73
+ - uses : actions/checkout@v3
74
+ with :
75
+ fetch-depth : 1
73
76
- uses : actions/setup-go@v4
74
77
with :
75
78
go-version : 1.20.x
76
- - uses : actions/checkout@v3
79
+ - name : Cache ~/Library/Caches/lima/download
80
+ uses : actions/cache@v3
77
81
with :
78
- fetch-depth : 1
82
+ path : ~/Library/Caches/lima/download
83
+ # hashFiles do not seem to support symlinks
84
+ key : ${{ runner.os }}-${{ hashFiles('examples/*.yaml') }}
79
85
- name : Unit tests
80
86
run : go test -v ./...
81
87
- name : Make
@@ -95,11 +101,8 @@ jobs:
95
101
# Github runners seem to have lima installed by brew already; we don't want/need it
96
102
time brew uninstall --ignore-dependencies lima colima
97
103
time brew install qemu bash coreutils curl jq
98
- - name : Cache ~/Library/Caches/lima/download
99
- uses : actions/cache@v3
100
- with :
101
- path : ~/Library/Caches/lima/download
102
- key : ${{ runner.os }}-integration
104
+ - name : " Show cache"
105
+ run : ./hack/debug-cache.sh
103
106
- name : " Test default.yaml"
104
107
uses : nick-invision/retry@v2
105
108
with :
@@ -130,29 +133,34 @@ jobs:
130
133
command : ./hack/test-templates.sh hack/test-templates/test-misc.yaml
131
134
# GHA macOS is slow and flaky, so we only test a few YAMLS here.
132
135
# Other yamls are tested on Linux instances of Cirrus.
136
+ #
137
+ - name : " Show cache"
138
+ if : always()
139
+ run : ./hack/debug-cache.sh
133
140
134
141
vmnet :
135
142
name : " VMNet test"
136
143
runs-on : macos-11
137
144
timeout-minutes : 120
138
145
steps :
146
+ - uses : actions/checkout@v3
147
+ with :
148
+ fetch-depth : 1
139
149
- uses : actions/setup-go@v4
140
150
with :
141
151
go-version : 1.20.x
142
- - uses : actions/checkout@v3
152
+ - name : Cache ~/Library/Caches/lima/download
153
+ uses : actions/cache@v3
143
154
with :
144
- fetch-depth : 1
155
+ path : ~/Library/Caches/lima/download
156
+ # hashFiles do not seem to support symlinks
157
+ key : ${{ runner.os }}-${{ hashFiles('examples/vmnet.yaml') }}
145
158
- name : Make
146
159
run : make
147
160
- name : Install
148
161
run : make install
149
162
- name : Install test dependencies
150
163
run : brew install qemu bash coreutils iperf3
151
- - name : Cache ~/Library/Caches/lima/download
152
- uses : actions/cache@v3
153
- with :
154
- path : ~/Library/Caches/lima/download
155
- key : ${{ runner.os }}-vmnet
156
164
- name : Install vde_switch and vde_vmnet (Deprecated)
157
165
env :
158
166
VDE_VMNET_VERSION : v0.6.0
@@ -209,19 +217,19 @@ jobs:
209
217
matrix :
210
218
oldver : ["v0.10.0"]
211
219
steps :
212
- - uses : actions/setup-go@v4
213
- with :
214
- go-version : 1.20.x
215
220
- uses : actions/checkout@v3
216
221
with :
217
222
fetch-depth : 0
218
- - name : Install test dependencies
219
- run : brew install qemu bash coreutils
223
+ - uses : actions/setup-go@v4
224
+ with :
225
+ go-version : 1.20.x
220
226
- name : Cache ~/Library/Caches/lima/download
221
227
uses : actions/cache@v3
222
228
with :
223
229
path : ~/Library/Caches/lima/download
224
230
key : ${{ runner.os }}-upgrade-${{ matrix.oldver }}
231
+ - name : Install test dependencies
232
+ run : brew install qemu bash coreutils
225
233
- name : Test
226
234
uses : nick-invision/retry@v2
227
235
with :
@@ -235,22 +243,23 @@ jobs:
235
243
runs-on : macos-13
236
244
timeout-minutes : 120
237
245
steps :
246
+ - uses : actions/checkout@v3
247
+ with :
248
+ fetch-depth : 1
238
249
- uses : actions/setup-go@v4
239
250
with :
240
251
go-version : 1.20.x
241
- - uses : actions/checkout@v3
252
+ - name : Cache ~/Library/Caches/lima/download
253
+ uses : actions/cache@v3
242
254
with :
243
- fetch-depth : 1
255
+ path : ~/Library/Caches/lima/download
256
+ # hashFiles do not seem to support symlinks
257
+ key : ${{ runner.os }}-${{ hashFiles('examples/experimental/vz.yaml') }}
244
258
- name : Make
245
259
run : make
246
260
- name : Install
247
261
run : make install
248
262
- name : Install test dependencies
249
263
run : brew install qemu bash coreutils
250
- - name : Cache ~/Library/Caches/lima/download
251
- uses : actions/cache@v3
252
- with :
253
- path : ~/Library/Caches/lima/download
254
- key : ${{ runner.os }}-vz
255
264
- name : Test
256
265
run : ./hack/test-templates.sh templates/experimental/vz.yaml
0 commit comments