3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-02-07 11:32:15 +00:00

added prefix-key, cache-directories, and cache-targets as features

This commit is contained in:
Mikhail Katychev 2022-10-17 16:36:37 -05:00
parent 22c9328bcb
commit e713427804
No known key found for this signature in database
GPG key ID: 9E8549CD2CEB5E59
2 changed files with 22 additions and 2 deletions

View file

@ -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