Skip to content

Commit

Permalink
Merge pull request #40 from actions-rust-lang/prepare-release
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb authored Jun 8, 2024
2 parents 74e1b40 + 46dca5d commit 1fbea72
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.9.0] - 2024-06-08

* Add extra argument `cache-on-failure` and forward it to `Swatinem/rust-cache`. (#39 by @samuelhnrq)
Set the default the value to true.
This will result in more caching than previously.
This helps when large dependencies are compiled only for testing to fail.

## [1.8.0] - 2024-01-13

* Allow specifying subdirectories for cache.
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ Afterward, the `components` and `target` specified via inputs are installed in a
| `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 |
| `cache-workspaces` | Propagates the value to `Swatinem/rust-cache` | |
| `cache-on-failure` | Propagates the value to `Swatinem/rust-cache` | |
| `cache` | Automatically configure Rust cache (using [`Swatinem/rust-cache`]) | true |
| `cache-workspaces` | Propagates the value to [`Swatinem/rust-cache`] | |
| `cache-on-failure` | Propagates the value to [`Swatinem/rust-cache`] | 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" |

[`Swatinem/rust-cache`]: https://github.com/Swatinem/rust-cache

### RUSTFLAGS

By default, this action sets the `RUSTFLAGS` environment variable to `-D warnings`.
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inputs:
required: false
cache-on-failure:
description: "Also cache on workflow failures"
default: "false"
default: "true"
required: false
matcher:
description: "Enable the Rust problem matcher"
Expand Down

0 comments on commit 1fbea72

Please sign in to comment.