File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,14 @@ jobs:
232232 path : scripts/tmp/build/
233233 retention-days : 3
234234
235+ - name : Upload zephyr deployment cache
236+ uses : actions/upload-artifact@v4
237+ if : always()
238+ with :
239+ name : zephyr-cache-${{ matrix.workspace }}
240+ path : ~/.zephyr/
241+ retention-days : 1
242+
235243 test-deployments :
236244 name : Test All Deployments
237245 needs : [build-workspace]
@@ -242,6 +250,26 @@ jobs:
242250 with :
243251 name : workspace-files
244252
253+ - name : Download zephyr deployment caches
254+ uses : actions/download-artifact@v4
255+ with :
256+ pattern : zephyr-cache-*
257+ path : zephyr-caches
258+ merge-multiple : false
259+
260+ - name : Restore zephyr cache
261+ run : |
262+ mkdir -p ~/.zephyr
263+ if [ -d "zephyr-caches" ]; then
264+ for cache_dir in zephyr-caches/zephyr-cache-*/; do
265+ if [ -d "$cache_dir" ]; then
266+ echo "Merging cache from $cache_dir"
267+ cp -r "$cache_dir"* ~/.zephyr/ 2>/dev/null || true
268+ fi
269+ done
270+ fi
271+ echo "Total files in zephyr cache: $(ls -1 ~/.zephyr/ 2>/dev/null | wc -l)"
272+
245273 - uses : pnpm/action-setup@v4
246274 with :
247275 version : 10.6.3
You can’t perform that action at this time.
0 commit comments