ci: scope Rust cache by targets to be built (#4136)

This commit is contained in:
Thomas Eizinger
2024-03-14 12:19:18 +11:00
committed by GitHub
parent 53cc7d6fd5
commit be22e99380

View File

@@ -9,6 +9,7 @@ inputs:
description: "Additional targets to install"
required: false
default: ""
runs:
using: "composite"
steps:
@@ -37,7 +38,7 @@ runs:
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'main' }}
key: ${{ runner.os }}-${{ runner.arch }}
key: ${{ runner.os }}-${{ inputs.targets }}
workspaces: ./rust
# Common to either cache backend