Commit 8b1f92e
feat: Add Maven dependency caching to CI/CD workflows
Add actions/cache@v4 to both library-api and builder-api deployment workflows to cache Maven dependencies in ~/.m2/repository. This will significantly speed up builds by avoiding re-downloading dependencies on every run.
Changes:
- Cache key based on pom.xml hash (invalidates when dependencies change)
- Restore keys allow fallback to previous Maven cache
- Expected time savings: 1-3 minutes per deployment (40-60% faster)
Also added temporary branch triggers to test caching on this branch before merging:
- library-api: Added branch trigger for current branch
- builder-api: Added branch trigger and workflow file to paths
These temporary triggers should be removed before merging to main.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 045add4 commit 8b1f92e
File tree
2 files changed
+22
-0
lines changed- .github/workflows
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
40 | 51 | | |
41 | 52 | | |
42 | 53 | | |
| |||
0 commit comments