Commit 6d0bb9f
committed
Add build artifact caching to CI workflow
Implement two-layer caching strategy to significantly reduce CI runtime:
1. External downloads cache (Image, rootfs.cpio):
- Caches prebuilt Linux kernel (~72MB) and initrd
- Key: external-${{ hashFiles('mk/external.mk') }}
- Invalidates only when SHA1 checksums change
- Shared across all OS platforms
2. Submodule builds cache (libgdbstub.a, libslirp.a):
- Caches compiled third-party libraries
- Key: ${{ runner.os }}-submodules-${{ hashFiles(...) }}
- Per-platform caching for binary compatibility
- Invalidates when submodule commits change1 parent 9944dd9 commit 6d0bb9f
1 file changed
+40
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
20 | 40 | | |
21 | 41 | | |
22 | 42 | | |
| |||
40 | 60 | | |
41 | 61 | | |
42 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
43 | 83 | | |
44 | 84 | | |
45 | 85 | | |
| |||
0 commit comments