Skip to content

Commit 10757ee

Browse files
committed
chore: attempt at making CI work
1 parent 8c2b854 commit 10757ee

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build-deploy-test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)