diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 4f8394a33b68..c2bf55b13158 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -270,13 +270,11 @@ jobs: - name: normalize versions run: node scripts/normalize-version-bump.js - - name: Cache on ${{ github.ref_name }} + - name: Cache Rust targets on ${{ github.ref_name }} if: ${{ !matrix.docker && !env.NEXT_SKIP_BUILD_CACHE }} - uses: ijjk/rust-cache@a34594c450817c9860143c79797a8770c4e587f5 # turbo-cache-v1.0.9 + uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 with: - save-if: 'true' - cache-provider: 'turbo' - shared-key: build-${{ matrix.target }}-${{ hashFiles('.cargo/config.toml') }} + shared-key: build-and-deploy-rust-cache-${{ matrix.target }}-${{ hashFiles('.cargo/config.toml') }} - name: Clear native build run: rm -rf packages/next-swc/native