rust-cache/action.yml

37 lines
1.2 KiB
YAML
Raw Normal View History

2020-09-25 22:42:39 +08:00
name: "Rust Cache"
2020-10-04 00:39:38 +08:00
description: "A GitHub Action that implements smart caching for rust/cargo projects with sensible defaults."
2020-09-25 22:42:39 +08:00
author: "Arpad Borsos <arpad.borsos@googlemail.com>"
inputs:
key:
2020-10-04 00:39:38 +08:00
description: "An additional key for the cache"
2020-09-25 22:42:39 +08:00
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
2021-05-19 16:10:43 +08:00
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
2021-06-29 05:18:07 +08:00
cache-on-failure:
description: "Cache even if the build fails. Defaults to false"
required: false
2020-12-22 10:56:41 +08:00
outputs:
cache-hit:
2021-05-19 16:10:43 +08:00
description: "A boolean value that indicates an exact match was found"
2020-09-25 22:42:39 +08:00
runs:
using: "node12"
main: "dist/restore/index.js"
post: "dist/save/index.js"
2021-06-29 05:18:07 +08:00
post-if: "success() || env.CACHE_ON_FAILURE == 'true'"
2020-09-25 22:42:39 +08:00
branding:
icon: "archive"
color: "gray-dark"