Commit 7fea151
committed
ci: cache node_modules and aw-tauri cargo target to reduce build times
- Cache node_modules directly instead of npm global cache. The global
cache only saves download time, but npm ci still does a full install
into node_modules every run (~5-7 min per npm ci call). Caching
node_modules directly skips this entirely on cache hit.
- Cache aw-tauri/src-tauri/target alongside aw-server-rust/target in
the Tauri workflow. The Tauri Cargo release build takes ~8 min
uncached and was not being cached previously.
- Also cache aw-tauri/node_modules in the Tauri workflow (has its own
package-lock.json separate from aw-webui).
Expected improvement: ~15-20 min savings on cached Windows Tauri builds
(from ~34 min to ~15 min).1 parent 278a864 commit 7fea151
2 files changed
+15
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 72 | + | |
| 73 | + | |
79 | 74 | | |
80 | | - | |
81 | | - | |
82 | 75 | | |
83 | | - | |
84 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
85 | 80 | | |
86 | | - | |
| 81 | + | |
87 | 82 | | |
88 | 83 | | |
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
92 | 87 | | |
93 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 73 | + | |
| 74 | + | |
80 | 75 | | |
81 | | - | |
82 | | - | |
83 | 76 | | |
84 | | - | |
85 | | - | |
| 77 | + | |
| 78 | + | |
86 | 79 | | |
87 | | - | |
| 80 | + | |
88 | 81 | | |
89 | 82 | | |
90 | 83 | | |
| |||
0 commit comments