mirror of
https://github.com/Swatinem/rust-cache.git
synced 2024-11-23 06:16:07 +08:00
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: "Rust Cache"
|
|
description: "A GitHub Action that implements smart caching for rust/cargo projects with sensible defaults."
|
|
author: "Arpad Borsos <arpad.borsos@googlemail.com>"
|
|
inputs:
|
|
key:
|
|
description: "An additional key for the cache"
|
|
required: false
|
|
sharedKey:
|
|
description: "An additional cache key that is stable over multiple jobs"
|
|
required: false
|
|
envVars:
|
|
description: "Additional environment variables to include in the cache key, separeted by spaces"
|
|
required: false
|
|
working-directory:
|
|
description: "The working directory this action should operate in"
|
|
required: false
|
|
target-dir:
|
|
description: "The target dir that should be cleaned and persisted, defaults to `./target`"
|
|
required: false
|
|
workspace-paths:
|
|
description: "Paths to multiple Cargo workspaces, separated by newlines"
|
|
required: false
|
|
cache-on-failure:
|
|
description: "Cache even if the build fails. Defaults to false"
|
|
required: false
|
|
outputs:
|
|
cache-hit:
|
|
description: "A boolean value that indicates an exact match was found"
|
|
runs:
|
|
using: "node12"
|
|
main: "dist/restore/index.js"
|
|
post: "dist/save/index.js"
|
|
post-if: "success() || env.CACHE_ON_FAILURE == 'true'"
|
|
branding:
|
|
icon: "archive"
|
|
color: "gray-dark"
|