From 5d6934e965a5457a045bd6a3327b3ce9dd0c6cbf Mon Sep 17 00:00:00 2001 From: Fukaya Temma <23367170+pranc1ngpegasus@users.noreply.github.com> Date: Sun, 18 Aug 2024 01:34:59 +0900 Subject: [PATCH] Able to cache additional directories --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index fa6bd89..8ad465f 100644 --- a/action.yml +++ b/action.yml @@ -28,6 +28,9 @@ inputs: cache-workspaces: description: "Paths to multiple Cargo workspaces and their target directories, separated by newlines." required: false + cache-directories: + description: "Additional non workspace directories to be cached, separated by newlines." + required: false cache-on-failure: description: "Also cache on workflow failures" default: "true" @@ -180,4 +183,5 @@ runs: uses: Swatinem/rust-cache@v2 with: workspaces: ${{inputs.cache-workspaces}} + cache-directories: ${{inputs.cache-directories}} cache-on-failure: ${{inputs.cache-on-failure}}