mirror of
https://github.com/Swatinem/rust-cache
synced 2025-12-27 15:26:38 +00:00
Added prefix-key cache-directories and cache-targets options (#85)
This commit is contained in:
parent
22c9328bcb
commit
b8e72aae83
5 changed files with 59 additions and 13 deletions
11
action.yml
11
action.yml
|
|
@ -2,6 +2,10 @@ name: "Rust Cache"
|
|||
description: "A GitHub Action that implements smart caching for rust/cargo projects with sensible defaults."
|
||||
author: "Arpad Borsos <swatinem@swatinem.de>"
|
||||
inputs:
|
||||
prefix-key:
|
||||
description: "The prefix cache key, this can be changed to start a new cache manually"
|
||||
required: false
|
||||
default: "v0-rust"
|
||||
shared-key:
|
||||
description: "An additional cache key that is stable over multiple jobs"
|
||||
required: false
|
||||
|
|
@ -14,6 +18,13 @@ inputs:
|
|||
workspaces:
|
||||
description: "Paths to multiple Cargo workspaces and their target directories, separated by newlines"
|
||||
required: false
|
||||
cache-directories:
|
||||
description: "Additional non workspace directories, separated by newlines"
|
||||
required: false
|
||||
cache-targets:
|
||||
description: "Determines whether workspace targets are cached"
|
||||
required: false
|
||||
default: "true"
|
||||
cache-on-failure:
|
||||
description: "Cache even if the build fails. Defaults to false"
|
||||
required: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue