ci: save release and dependency-check Rust caches only on main (#10758)

* ci: save release and dependency-check Rust caches only on main

The macOS and Windows release builds and the dependency check saved Rust
caches on every ref, including tags and PRs. Those caches are unreachable
from other refs and evict main's caches. Save them only on main, and
extend the cache policy test to every workflow and composite action.

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* ci: correct the macOS rust-cache key comment

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

---------

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
This commit is contained in:
dennis zhuang
2026-11-30 15:36:51 +00:00
committed by GitHub
parent 187facb58f
commit cafa744e51
5 changed files with 77 additions and 13 deletions
+2
View File
@@ -19,6 +19,8 @@ jobs:
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- name: Run cargo tree
run: cargo tree --prefix none > dependencies.txt