Skip to content

Commit 1fbea72

Browse files
authored
Merge pull request #40 from actions-rust-lang/prepare-release
2 parents 74e1b40 + 46dca5d commit 1fbea72

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.9.0] - 2024-06-08
11+
12+
* Add extra argument `cache-on-failure` and forward it to `Swatinem/rust-cache`. (#39 by @samuelhnrq)
13+
Set the default the value to true.
14+
This will result in more caching than previously.
15+
This helps when large dependencies are compiled only for testing to fail.
16+
1017
## [1.8.0] - 2024-01-13
1118

1219
* Allow specifying subdirectories for cache.

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ Afterward, the `components` and `target` specified via inputs are installed in a
5353
| `toolchain` | Rustup toolchain specifier e.g. `stable`, `nightly`, `1.42.0`. | stable |
5454
| `target` | Additional target support to install e.g. `wasm32-unknown-unknown` | |
5555
| `components` | Comma-separated string of additional components to install e.g. `clippy, rustfmt` | |
56-
| `cache` | Automatically configure Rust cache (using `Swatinem/rust-cache`) | true |
57-
| `cache-workspaces` | Propagates the value to `Swatinem/rust-cache` | |
58-
| `cache-on-failure` | Propagates the value to `Swatinem/rust-cache` | |
56+
| `cache` | Automatically configure Rust cache (using [`Swatinem/rust-cache`]) | true |
57+
| `cache-workspaces` | Propagates the value to [`Swatinem/rust-cache`] | |
58+
| `cache-on-failure` | Propagates the value to [`Swatinem/rust-cache`] | true |
5959
| `matcher` | Enable problem matcher to surface build messages and formatting issues | true |
6060
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
6161

62+
[`Swatinem/rust-cache`]: https://github.com/Swatinem/rust-cache
63+
6264
### RUSTFLAGS
6365

6466
By default, this action sets the `RUSTFLAGS` environment variable to `-D warnings`.

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ inputs:
3030
required: false
3131
cache-on-failure:
3232
description: "Also cache on workflow failures"
33-
default: "false"
33+
default: "true"
3434
required: false
3535
matcher:
3636
description: "Enable the Rust problem matcher"

0 commit comments

Comments
 (0)