mirror of
https://github.com/Swatinem/rust-cache
synced 2025-08-08 06:11:24 +00:00
support working-directory input, cleanup
This commit is contained in:
parent
fb2efae33d
commit
9e10a44ea3
6 changed files with 53 additions and 49 deletions
18
README.md
18
README.md
|
@ -6,10 +6,26 @@ sensible defaults.
|
|||
## Example usage
|
||||
|
||||
```yaml
|
||||
# selecting a toolchain either by action or manual `rustup` calls should happen
|
||||
# before the plugin, as it uses the current rustc version as its cache key
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
```
|
||||
|
||||
### Cache Details
|
||||
## Inputs
|
||||
|
||||
: `key`
|
||||
An optional key that is added to the automatic cache key.
|
||||
|
||||
: `working-directory`
|
||||
The working directory the action operates in, is case the cargo project is not
|
||||
located in the repo root.
|
||||
|
||||
## Cache Details
|
||||
|
||||
The cache currently caches the following directories:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue