3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-02-25 20:51:26 +00:00

Allow opting out of caching CARGO_HOME/bin.

Prevents wiping the bin directory, which is harmful for
self-hosted runners.
This commit is contained in:
Benjy Weinberger 2022-10-12 17:21:17 -07:00
parent 8f842c2d45
commit 5ed697a689
5 changed files with 69 additions and 15 deletions

View file

@ -40,6 +40,9 @@ inputs:
description: "Determines which provider to use for caching. Options are github or buildjet, defaults to github."
required: false
default: "github"
cache-bin:
description: "A boolean value indicating whether to cache ${CARGO_HOME}/bin (default: true)"
required: false
outputs:
cache-hit:
description: "A boolean value that indicates an exact match was found."