27
27
id : restore-buildkit-cache
28
28
with :
29
29
path : |
30
- buildkit
30
+ buildkit.tar.zst
31
31
key : buildkit-${{ runner.os }}-
32
32
restore-keys : |
33
33
buildkit-${{ runner.os }}-
@@ -37,11 +37,24 @@ jobs:
37
37
id : restore-droot-cache
38
38
with :
39
39
path : |
40
- droot
40
+ droot.tar.zst
41
41
key : droot-${{ runner.os }}-
42
42
restore-keys : |
43
43
droot-${{ runner.os }}-
44
44
45
+ - name : Unpack cache artifacts
46
+ shell : pwsh
47
+ run : |
48
+ if ((Test-Path "buildkit.tar.zst")) {
49
+ tar --zstd -xvf buildkit.tar.zst
50
+ Write-Host "✅ unpacked buildkit!"
51
+ }
52
+
53
+ if ((Test-Path "droot.tar.zst")) {
54
+ tar --zstd -xvf droot.tar.zst
55
+ Write-Host "✅ unpacked daemons root!"
56
+ }
57
+
45
58
- name : Log in to Container Registry
46
59
uses : docker/login-action@v3
47
60
with :
@@ -164,8 +177,14 @@ jobs:
164
177
} else {
165
178
Write-Host "⚠️ buildkitd is not running."
166
179
}
167
-
168
- - uses : fawazahmed0/action-debug-vscode@main
180
+
181
+ - name : Pack cache
182
+ shell : pwsh
183
+ run : |
184
+ tar --zstd -cvf buildkit.tar.zst .\buildkit\
185
+ Write-Host "✅ packed buildkit!"
186
+ tar --zstd -cvf droot.tar.zst .\droot\
187
+ Write-Host "✅ packed daemons root!"
169
188
170
189
# - name: Build app image
171
190
# shell: cmd
@@ -181,13 +200,13 @@ jobs:
181
200
uses : actions/cache/save@v4
182
201
with :
183
202
path : |
184
- buildkit
203
+ buildkit.tar.zst
185
204
key : buildkit-${{ runner.os }}-
186
205
187
206
- name : Save Daemon Cache
188
207
id : save-droot-cache
189
208
uses : actions/cache/save@v4
190
209
with :
191
210
path : |
192
- droot
211
+ droot.tar.zst
193
212
key : droot-${{ runner.os }}-
0 commit comments