mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2024-12-26 17:00:34 +01:00
Able to cache additional directories
This commit is contained in:
parent
1fbea72663
commit
5d6934e965
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,9 @@ inputs:
|
||||||
cache-workspaces:
|
cache-workspaces:
|
||||||
description: "Paths to multiple Cargo workspaces and their target directories, separated by newlines."
|
description: "Paths to multiple Cargo workspaces and their target directories, separated by newlines."
|
||||||
required: false
|
required: false
|
||||||
|
cache-directories:
|
||||||
|
description: "Additional non workspace directories to be cached, separated by newlines."
|
||||||
|
required: false
|
||||||
cache-on-failure:
|
cache-on-failure:
|
||||||
description: "Also cache on workflow failures"
|
description: "Also cache on workflow failures"
|
||||||
default: "true"
|
default: "true"
|
||||||
|
@ -180,4 +183,5 @@ runs:
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
workspaces: ${{inputs.cache-workspaces}}
|
workspaces: ${{inputs.cache-workspaces}}
|
||||||
|
cache-directories: ${{inputs.cache-directories}}
|
||||||
cache-on-failure: ${{inputs.cache-on-failure}}
|
cache-on-failure: ${{inputs.cache-on-failure}}
|
||||||
|
|
Loading…
Reference in a new issue