Merge pull request #4 from filips123/add-cache-option
Add an option to disable configuring Rust cache
This commit is contained in:
commit
7d6ff77cf9
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* An option to disable configuring Rust cache.
|
||||||
|
|
||||||
## [1.2.1] - 2022-07-29
|
## [1.2.1] - 2022-07-29
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -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 |
|
| `toolchain` | Rustup toolchain specifier e.g. `stable`, `nightly`, `1.42.0`. | stable |
|
||||||
| `target` | Additional target support to install e.g. `wasm32-unknown-unknown` | |
|
| `target` | Additional target support to install e.g. `wasm32-unknown-unknown` | |
|
||||||
| `components` | Comma-separated string of additional components to install e.g. `clippy, rustfmt` | |
|
| `components` | Comma-separated string of additional components to install e.g. `clippy, rustfmt` | |
|
||||||
|
| `cache` | Automatically configure Rust cache (using `Swatinem/rust-cache`) | true |
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,10 @@ inputs:
|
||||||
components:
|
components:
|
||||||
description: "Comma-separated list of components to be additionally installed"
|
description: "Comma-separated list of components to be additionally installed"
|
||||||
required: false
|
required: false
|
||||||
|
cache:
|
||||||
|
description: "Automatically configure Rust cache"
|
||||||
|
required: false
|
||||||
|
default: "true"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
rustc-version:
|
rustc-version:
|
||||||
|
@ -100,4 +104,5 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: "Setup Rust Caching"
|
- name: "Setup Rust Caching"
|
||||||
|
if: inputs.cache == 'true'
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
Loading…
Reference in New Issue