Commit e9c2a7c
committed
ci: add caching for Go modules and Maven dependencies
Add caching to speed up CI builds by caching:
- Go modules (~/.cache/go-build and ~/go/pkg/mod) based on go.sum
- Maven dependencies (~/.m2/repository) based on pom.xml
This significantly reduces build times by avoiding re-downloading
dependencies on every CI run. Cache keys are based on dependency
file hashes, so cache is invalidated when dependencies change.
Benefits:
- Faster Go builds (no need to download modules each time)
- Faster Maven builds (no need to download dependencies each time)
- Reduced network usage and CI minutes1 parent 1af7b85 commit e9c2a7c
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
| |||
257 | 267 | | |
258 | 268 | | |
259 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
260 | 278 | | |
261 | 279 | | |
262 | 280 | | |
| |||
0 commit comments