2022-04-20 22:15:26 +02:00
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog ](https://keepachangelog.com/en/1.0.0/ ),
and this project adheres to [Semantic Versioning ](https://semver.org/spec/v2.0.0.html ).
2023-02-13 23:47:37 +01:00
## [Unreleased]
2023-05-29 20:31:27 +02:00
## [1.5.0] - 2023-05-29
### Added
* Support installing additional components and targets that are not listed in `rust-toolchain` (#14)
Before only the items listed in `rust-toolchain` were installed.
Now all the items from the toolchain file are installed and then all the `target` s and `components` that are provided as action inputs.
This allows installing extra tools only for CI or simplify testing special targets in CI.
2023-05-29 21:38:39 +02:00
* Allow skipping the creation of a `RUSTFLAGS` environment variable.
Cargos logic for rustflags is complicated, and setting the `RUSTFLAGS` environment variable prevents other ways of working.
Provide a new `rustflags` input, which controls the environment variable creation.
If the value is set to the empty string, then `RUSTFLAGS` is not created.
Pre-existing `RUSTFLAGS` variables are never modified by this extension.
2023-05-29 20:31:27 +02:00
2023-03-18 00:18:20 +01:00
## [1.4.4] - 2023-03-18
### Fixed
* Use color aware problem matcher.
The problem matcher currently runs against the colored terminal output ([Bug 1](https://github.com/actions/runner/issues/2341), [Bug 2 ](https://github.com/actions/runner/pull/2430 )).
The previous matcher was not aware of ANSII color codes and did not work.
2023-02-21 22:15:17 +01:00
## [1.4.3] - 2023-02-21
### Fixed
* Executing the action twice for different toolchains now no longer fails around unstable features #12 .
If multiple toolchains are installed, the "CARGO_REGISTRIES_CRATES_IO_PROTOCOL" can be downgraded to "git" if any of the installed toolchains require it.
2023-02-15 18:48:31 +01:00
## [1.4.2] - 2023-02-15
### Fixed
* Tweak sparse registry version regex to better work with 1.68 nightly versions.
* Fix command not found issue
2023-02-13 23:47:37 +01:00
## [1.4.1] - 2023-02-13
### Fixed
* Fixed running on macOS #9 #10
The macOS images have an ancient version of bash, but the action relies on "newer" features than 2014.
We install bash via brew (already pre-installed) to have a new enough version.
The CI is extended to also run on Windows and macOS to catch such issues earlier in the future.
Thanks to @GeorgeHahn for reporting the issue.
2023-02-13 21:09:16 +01:00
## [1.4.0] - 2023-02-13
2022-04-20 22:15:26 +02:00
2023-02-13 20:44:18 +01:00
### Changed
* Only set environment variables, if they are not set before.
This allows setting environment variables before using this action and keeping their values.
2023-02-13 21:00:11 +01:00
* Enable stable sparse registry, except on versions 1.66 and 1.67 where this leads to errors.
2023-01-31 23:15:57 +01:00
## [1.3.7] - 2023-01-31
### Fixed
* Disable the stable access to the sparse registry.
Setting the value causes problem on version before stabilization, e.g., 1.67.
For example, "cargo add" fails.
2023-01-31 13:10:41 +01:00
## [1.3.6] - 2023-01-31
### Fixed
* The the correct environment variable to enable the sparse registry access.
The pull request originally had the wrong value, without `CARGO_` prefix.
2023-01-21 18:18:27 +01:00
## [1.3.5] - 2023-01-21
### Changed
* Use the newly stabilized setting to enable sparse registry access.
This speeds up access to the crate registry and is in addition to the unstable nightly env var.
< https: / / github . com / rust-lang / cargo / pull / 11224 >
2022-10-15 15:48:55 +02:00
## [1.3.4] - 2022-10-15
### Changed
* The last version did not fix all "set-output" commands
2022-10-13 21:01:25 +02:00
## [1.3.3] - 2022-10-13
### Changed
* Switch from set-output to $GITHUB_OUTPUT to avoid warning
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-09-15 22:17:16 +02:00
## [1.3.2] - 2022-09-15
### Fixed
* Fix setting `$CARGO_HOME` to a valid path, in case rustup is installed from the internet.
Thanks to @nahsi for providing the fix.
2022-08-14 17:09:22 +02:00
## [1.3.1] - 2022-08-14
### Changed
* Use the sparse-registry on nightly for faster access to the crate registry on nightly.
< https: / / internals . rust-lang . org / t / call-for-testing-cargo-sparse-registry / 16862 >
2022-07-30 23:57:54 +02:00
## [1.3.0] - 2022-07-30
2022-07-30 20:01:03 +02:00
### Added
* An option to disable configuring Rust cache.
2022-07-30 23:57:54 +02:00
Thanks to @filips123 for the PR.
2022-07-30 20:01:03 +02:00
2022-07-29 22:28:32 +02:00
## [1.2.1] - 2022-07-29
### Fixed
* Set environment variables before invoking the cache action.
This ensures restoring and saving are using the same cache key.
2022-07-21 22:35:59 +02:00
## [1.2.0] - 2022-07-21
### Added
* Prefer toolchain definitions in `rust-toolchain` or `rust-toolchain.toml` files ([Toolchain File](https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file)).
Other input values are ignored if either file is found.
2022-07-19 21:03:54 +02:00
## [1.1.0] - 2022-07-19
2022-07-19 20:48:19 +02:00
### Added
* Install rustup if not available in the CI environment. (Linux only)
The code is taken from this issue: < https: / / github . com / dtolnay / rust-toolchain / pull / 8 >
2022-07-19 21:00:36 +02:00
* Add rustc version output suitable as a cache key.
This is based on < https: / / github . com / dtolnay / rust-toolchain / pull / 20 > and < https: / / github . com / dtolnay / rust-toolchain / pull / 17 > .
2022-07-19 20:48:19 +02:00
2022-07-19 21:01:40 +02:00
### Changed
* Update to `Swatinem/rust-cache@v2` .
2022-07-19 21:03:54 +02:00
## [1.0.2] - 2022-05-02
### Changed
* Enable colored cargo output.
* Print short backtraces during test failure.
2022-04-20 22:27:13 +02:00
## [1.0.1] - 2022-04-20
### Added
* Release action on marketplace
2022-04-20 22:15:26 +02:00
## [1.0.0] - 2022-04-20
Initial Version