diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 1b4e6539f9a..4e77c73a46c 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -99,8 +99,7 @@ jobs: if: ${{ !inputs.skipable }} uses: ./.github/actions/rustup with: - save-cache: ${{ github.ref_name == 'main' }} # This should be safe because we have nightly building the cache every day - shared-key: build-${{ inputs.target }} + shared-key: build-${{ inputs.target }}-${{ inputs.profile }} # Compile dependencies with optimization to make tests run faster - name: Add optimization to debug profile @@ -427,8 +426,7 @@ jobs: - name: Install Rust Toolchain uses: ./.github/actions/rustup with: - save-cache: ${{ github.ref_name == 'main' }} # This should be safe because we have nightly building the cache every day - shared-key: build-${{ inputs.target }} + shared-key: build-${{ inputs.target }}-${{ inputs.profile }} - name: Pnpm Cache uses: ./.github/actions/pnpm-cache