fix: stop backend-test rust cache from bloating and filling the runner disk (#12411)

Claude-Session: https://claude.ai/code/session_01PjsYvxS1dYPf1dwqAXUY8y

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-11-13 13:38:07 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 792e66a30a
commit bc613cf41d
+6
View File
@@ -98,6 +98,12 @@ jobs:
with:
cache-workspaces: backend
toolchain: 1.97.0
# ubicloud's cache is not scoped per branch, so a PR's save is restored by main and every
# other PR. Each save keeps the artifacts it restored, so PR saves grew the cache from
# ~2GB to ~8GB compressed and the restored target dir filled the runner's disk at link
# time. Save from main only; bump cache-key to drop a bloated cache.
cache-key: v2
cache-save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Fix stale v8 build cache
working-directory: ./backend
run: |