ci: only save cache on master builds
This commit is contained in:
parent
9c7eb90d69
commit
f1a8fa8840
|
@ -65,6 +65,7 @@ jobs:
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
shared-key: "desktop"
|
shared-key: "desktop"
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
|
@ -59,6 +59,7 @@ jobs:
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
shared-key: "web"
|
shared-key: "web"
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
# wasm-bindgen-cli version must match wasm-bindgen crate version.
|
# 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.
|
# Be sure to update in release_nightly.yml, web/Cargo.toml and web/README.md.
|
||||||
|
|
Loading…
Reference in New Issue