Merge pull request #39 from samuelhnrq/main

This commit is contained in:
Jonas Bushart 2024-06-05 20:01:48 +02:00 committed by GitHub
commit 74e1b40e68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,7 @@ Afterward, the `components` and `target` specified via inputs are installed in a
| `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 | | `cache` | Automatically configure Rust cache (using `Swatinem/rust-cache`) | true |
| `cache-workspaces` | Propagates the value to `Swatinem/rust-cache` | | | `cache-workspaces` | Propagates the value to `Swatinem/rust-cache` | |
| `cache-on-failure` | Propagates the value to `Swatinem/rust-cache` | |
| `matcher` | Enable problem matcher to surface build messages and formatting issues | true | | `matcher` | Enable problem matcher to surface build messages and formatting issues | true |
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" | | `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |

View File

@ -28,6 +28,10 @@ inputs:
cache-workspaces: cache-workspaces:
description: "Paths to multiple Cargo workspaces and their target directories, separated by newlines." description: "Paths to multiple Cargo workspaces and their target directories, separated by newlines."
required: false required: false
cache-on-failure:
description: "Also cache on workflow failures"
default: "false"
required: false
matcher: matcher:
description: "Enable the Rust problem matcher" description: "Enable the Rust problem matcher"
required: false required: false
@ -176,3 +180,4 @@ runs:
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
with: with:
workspaces: ${{inputs.cache-workspaces}} workspaces: ${{inputs.cache-workspaces}}
cache-on-failure: ${{inputs.cache-on-failure}}