From 3ec6dbd4080ce6af10f2b204a0ef903e591e082d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20=C5=A0?= Date: Sat, 30 Jul 2022 20:01:03 +0200 Subject: [PATCH] Add an option to disable configuring Rust cache --- CHANGELOG.md | 4 ++++ README.md | 1 + action.yml | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 352511d..c5c8c36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +* An option to disable configuring Rust cache. + ## [1.2.1] - 2022-07-29 ### Fixed diff --git a/README.md b/README.md index 1108dc5..542a423 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ All input values are ignored if a toolchain file exists. | `toolchain` | Rustup toolchain specifier e.g. `stable`, `nightly`, `1.42.0`. | stable | | `target` | Additional target support to install e.g. `wasm32-unknown-unknown` | | | `components` | Comma-separated string of additional components to install e.g. `clippy, rustfmt` | | +| `cache` | Automatically configure Rust cache (using `Swatinem/rust-cache`) | true | ## Outputs diff --git a/action.yml b/action.yml index 57a43f4..df57569 100644 --- a/action.yml +++ b/action.yml @@ -22,6 +22,10 @@ inputs: components: description: "Comma-separated list of components to be additionally installed" required: false + cache: + description: "Automatically configure Rust cache" + required: false + default: "true" outputs: rustc-version: @@ -100,4 +104,5 @@ runs: shell: bash - name: "Setup Rust Caching" + if: inputs.cache == 'true' uses: Swatinem/rust-cache@v2