From 33c984a860e8f12c6e43ea300b229c0d1debd1d8 Mon Sep 17 00:00:00 2001 From: Filippo Neysofu Costa Date: Tue, 1 Aug 2023 17:47:34 +0200 Subject: [PATCH] Evaluate CI caching `save-if` conditions (#599) --- .github/workflows/rust.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2791827d3a..2c79d0cee7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -68,7 +68,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: shared-key: cargo-check - save-if: github.ref == 'refs/heads/nightly' + save-if: ${{ github.ref == 'refs/heads/nightly' }} workspaces: | . examples/demo-prover @@ -97,7 +97,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: shared-key: cargo-check - save-if: github.ref == 'refs/heads/nightly' + save-if: ${{ github.ref == 'refs/heads/nightly' }} workspaces: | . examples/demo-prover @@ -117,7 +117,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: shared-key: cargo-build - save-if: github.ref == 'refs/heads/nightly' + save-if: ${{ github.ref == 'refs/heads/nightly' }} workspaces: | . examples/demo-prover @@ -139,7 +139,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: shared-key: cargo-build - save-if: github.ref == 'refs/heads/nightly' + save-if: ${{ github.ref == 'refs/heads/nightly' }} workspaces: | . examples/demo-prover @@ -202,7 +202,7 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: Swatinem/rust-cache@v2 with: - save-if: github.ref == 'refs/heads/nightly' + save-if: ${{ github.ref == 'refs/heads/nightly' }} workspaces: | . examples/demo-prover @@ -232,7 +232,7 @@ jobs: uses: taiki-e/install-action@cargo-llvm-cov - uses: Swatinem/rust-cache@v2 with: - save-if: github.ref == 'refs/heads/nightly' + save-if: ${{ github.ref == 'refs/heads/nightly' }} workspaces: | . examples/demo-prover @@ -268,7 +268,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: shared-key: cargo-check - save-if: github.ref == 'refs/heads/nightly' + save-if: ${{ github.ref == 'refs/heads/nightly' }} workspaces: | . examples/demo-prover