diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4966c8b..2c60554 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,9 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - - name: Cache toolchain - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 with: