ci: only save cache on master builds

This commit is contained in:
Adrian Wielgosik 2023-09-06 22:56:24 +02:00 committed by Adrian Wielgosik
parent 9c7eb90d69
commit f1a8fa8840
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: "desktop"
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Check formatting
run: cargo fmt --all -- --check

View File

@ -59,6 +59,7 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
shared-key: "web"
save-if: ${{ github.ref == 'refs/heads/master' }}
# wasm-bindgen-cli version must match wasm-bindgen crate version.
# Be sure to update in release_nightly.yml, web/Cargo.toml and web/README.md.