diff --git a/.github/workflows/test_rust.yml b/.github/workflows/test_rust.yml index a0e0da0f5..3d26cdc85 100644 --- a/.github/workflows/test_rust.yml +++ b/.github/workflows/test_rust.yml @@ -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 diff --git a/.github/workflows/test_web.yml b/.github/workflows/test_web.yml index c7c0b39d7..c37869561 100644 --- a/.github/workflows/test_web.yml +++ b/.github/workflows/test_web.yml @@ -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.