mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Save Rust CI caches only on master
Every patch saved its own Rust caches, up to 3 GB per patch, which pushed the repo past GitHub's 10 GB cache limit and evicted the ones master builds rely on. Patches now restore master's caches, and line-table-only debug info keeps the builds and caches smaller.
This commit is contained in:
@@ -13,6 +13,9 @@ on:
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
# Debug info is most of a target/ directory. Line tables keep file:line in
|
||||
# panics and backtraces, and make builds and caches much smaller.
|
||||
CARGO_PROFILE_DEV_DEBUG: line-tables-only
|
||||
|
||||
defaults:
|
||||
run:
|
||||
@@ -48,6 +51,9 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: desktop
|
||||
# Only master saves, so patches share its caches instead of each
|
||||
# storing their own, which pushes the repo over GitHub's 10 GB limit.
|
||||
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||
|
||||
- name: Cache heartwood binaries
|
||||
uses: actions/cache@v5
|
||||
|
||||
Reference in New Issue
Block a user