Skip to content

Commit 2c5b402

Browse files
authored
Tweak to reduce total number of rust-cache (slint-ui#10017)
50GB of caches in branches is still being created. This doesn't eliminate them all but makes a decent dent. This stops the more useful master branch cache being evicted.
1 parent dfbcbda commit 2c5b402

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/actions/setup-rust/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ inputs:
3131
save_if:
3232
description: "Condition to save the cache"
3333
required: false
34-
default: "true"
34+
default: ${{ github.ref == 'refs/heads/master' }}
3535

3636
runs:
3737
using: composite

.github/workflows/build_and_test_reusable.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
toolchain: ${{ inputs.rust_version }}
8585
key: x-v3
8686
save_if: ${{ inputs.save_if }}
87+
cache: ${{ inputs.cache }}
8788
- name: Run tests
8889
run: cargo test --verbose --all-features --workspace --timings ${{ inputs.extra_args }} --exclude slint-node --exclude pyslint --exclude test-driver-node --exclude slint-node --exclude test-driver-nodejs --exclude test-driver-cpp --exclude mcu-board-support --exclude mcu-embassy --exclude printerdemo_mcu --exclude uefi-demo --exclude slint-cpp --exclude slint-python -- --skip=_qt::t
8990
env:

0 commit comments

Comments
 (0)