Skip to content

Commit

Permalink
Scope cache by targets to be built
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Mar 14, 2024
1 parent 487ce6e commit 7067deb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ inputs:
description: "Additional targets to install"
required: false
default: ""

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7067deb

Please sign in to comment.