dependabot[bot]
e541adf990
Bump Swatinem/rust-cache from 2.8.1 to 2.8.2
...
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache ) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/swatinem/rust-cache/releases )
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md )
- [Commits](f13886b937...779680da71 )
---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
dependency-version: 2.8.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-01 09:13:07 +00:00
Jonas Bushart
063a3b947b
Use correct quoting style for working-directory
2025-10-04 13:10:09 +02:00
Jonas Bushart
f89a806691
Use the built-in working-directory selector and default to "." if rust-src-dir is not set
2025-10-04 13:06:57 +02:00
Jonas Bushart
51897173ae
Gate the rust-src-dir check by first checking if the value is set
2025-10-04 12:57:01 +02:00
Jonas Bushart
d6688fbd7a
Print an error and exit if 'rust-src-dir' does not point to an existing directory
2025-10-03 23:23:33 +02:00
dependabot[bot]
183cfebcbd
Bump Swatinem/rust-cache from 2.8.0 to 2.8.1
...
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache ) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/swatinem/rust-cache/releases )
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md )
- [Commits](98c8021b55...f13886b937 )
---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
dependency-version: 2.8.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-22 07:02:11 +00:00
Jonas Bushart
89d3d963c9
Merge pull request #69 from Kubaryt/main
2025-09-14 20:38:20 +01:00
Kubaryt
4222ef9487
Set workspaces in Swatinem/rust-cache to rust-src-dir if cache-workspaces is not set
2025-08-28 14:20:24 +02:00
Kubaryt
0be57f121b
combine rust-src-dir presence and rust_toolchain file presence checks
2025-08-28 14:20:24 +02:00
Kubaryt
426e06d077
enhancement: Add option to specify rust-toolchain.toml path ( #47 )
2025-08-27 17:28:40 +02:00
Rob Ede
f964086661
Merge branch 'main' into pin-actions
2025-08-26 07:10:09 +01:00
Jonas Bushart
ab6845274e
Add new parameters cache-all-crates and cache-workspace-crates
...
Add new parameters `cache-all-crates` and `cache-workspace-crates` that
are propagated to `Swatinem/rust-cache` as `cache-all-crates` and
`cache-workspace-crates`
Closes #67
2025-08-23 17:08:42 +02:00
Yuki Okushi
eb1c1a5d34
Pin Swatinem/rust-cache action to a full commit SHA
2025-08-22 16:07:16 +09:00
lukas
82947d77a9
feat: support cache-provider
2025-06-16 08:02:53 +02:00
Jonatan Männchen
d9c91b20fd
Support rustup installation for Windows
2025-04-23 16:47:51 +02:00
Rob Ede
3c7cfa82dc
Merge branch 'main' into rel-1110
2025-02-24 02:35:39 +00:00
Rob Ede
6cbea1a794
chore: prepare release 1.11.0
2025-02-24 02:19:52 +00:00
Rob Ede
6f9a9da9f9
Merge branch 'main' into main
2025-02-24 02:15:25 +00:00
Enkhjil Enkhbaatar
30081c4da5
fix: add cache-bin input with true as default value
2025-02-11 12:01:30 +09:00
skanehira
f8efd60d2d
feat: add shared-cache-key to inputs
2025-02-08 01:24:48 +09:00
Jonas Bushart
4d1965c914
Add override input parameter that controls the rustup override behavior
2024-09-22 16:04:02 +02:00
Jonas Bushart
b31b1317f2
Allow installing multiple Rust toolchains at once.
2024-09-22 15:28:43 +02:00
Jonas Bushart
86a2ce6673
Make toolchain install more robust
2024-09-20 00:39:06 +02:00
Jonas Bushart
a90048dfdd
Merge pull request #41 from iainlane/iainlane/propagate-cache-key
2024-09-20 00:23:43 +02:00
Fukaya Temma
5d6934e965
Able to cache additional directories
2024-08-18 01:34:59 +09:00
Iain Lane
b01657d9bb
Add support for adding to cache key
...
When using this action in multiple matrix jobs in the same workflow, the
generated cache key is the same for all of them, because they all get
the same job ID. This means that all apart from the first job are unable
to save the cache, and subsequent runs might restore the wrong cache.
The `Swatinem/rust-cache` action which we use for caching has a `key`
input which it puts in its cache key. (It doesn't override the key, just
adds to it.) Providing this as an input here will allow us to generate a
unique cache key for each job in the matrix.
2024-07-13 07:31:43 +01:00
Jonas Bushart
1734e14b0b
Switch default of cache-on-failure to true
2024-06-08 12:33:50 +02:00
Samuel Henrique
d60b90debe
feat: adds cache-on-failure propagation
2024-05-25 08:26:47 +00:00
Rob Ede
6f719a240e
Merge branch 'main' into add-workspaces
2024-01-13 17:36:40 +00:00
Felix Prasanna
d473183fe9
use rustup override set to select toolchain
...
Using rustup override set will override a local rust-toolchain.toml file
while rustup default will not.
2024-01-12 17:14:34 -05:00
gruebel
f2e9ed58bd
add workspaces input field to support non-root projects
2024-01-12 18:41:01 +01:00
Rob Ede
af702488e5
ci: update checked rust-toolchain version
2024-01-11 03:12:29 +00:00
Rob Ede
99ab88ad00
Merge branch 'main' into allow-overriding-toolchain-file
2024-01-11 02:56:08 +00:00
dcvz
51173b3da4
feature(matcher): allow disabling problem matcher
2023-11-30 11:42:45 +01:00
James ‘Twey’ Kay
5ea736b97f
Allow overriding the toolchain file
2023-10-31 12:58:53 +00:00
Jonas Bushart
1ef811fbfb
Restore behavior to not touch existing RUSTFLAGS variable
...
Add changelog
2023-05-29 21:38:39 +02:00
Jean Mertz
70241ab2e9
fixes
2023-05-29 21:27:29 +02:00
Jean Mertz
823a4a135d
fixes
2023-05-29 21:27:29 +02:00
Jean Mertz
aaa7eef1a2
requred -> required
2023-05-29 21:27:29 +02:00
Jean Mertz
24274e4435
allow disabling RUSTFLAGS config
2023-05-29 21:27:29 +02:00
Jonas Bushart
b065e5ab9f
Install components and targets after installing everything from the rust-toolchain file
2023-05-20 16:49:42 +02:00
Jonas Bushart
f010a58728
Always downgrade the registry protocol to supported versions
...
Not all version support the new sparse protocol. While old versions
ignore the value, 1.66 and other fail due to unstable features.
If such a version is detected, always downgrade to the git protocol.
This fixes running the action twice with different toolchains. Even if
the first install uses something which supports "sparse", the second run
can still downgrade it to "git".
Closes #12
2023-02-21 21:02:41 +00:00
Jonas Bushart
2d7b97c05c
Tweak sparse registry version regex and command not found
...
These issues are reported again rust-toolchain from which the code is
inspired.
https://github.com/dtolnay/rust-toolchain/issues/71
https://github.com/dtolnay/rust-toolchain/pull/69#pullrequestreview-1299712112
2023-02-15 18:49:49 +01:00
Jonas Bushart
40e33d4912
Install newer bash on macOS
...
The code snippets are written with bash newer than 2014 in mind. This
works fine on Linux and Windows, but not macOS.
2023-02-13 23:28:57 +01:00
Jonas Bushart
2ee353b897
Enable sparse registry access using the stable configuration
...
Exclude versions 1.66 and 1.67, which don't support stable sparse registry.
2023-02-13 21:00:11 +01:00
Jonas Bushart
045ad9ff3f
Only set env vars if they are unset.
2023-02-13 20:58:51 +01:00
Jonas Bushart
dfa8744db3
Do not enable sparse registry on stable
2023-01-31 23:15:57 +01:00
Jonas Bushart
2941fbfa4a
Use the correct variable to enable sparse registry access
2023-01-31 13:10:41 +01:00
Jonas Bushart
bc88fd0b3e
Enable sparse registry access after stabilization
...
https://github.com/rust-lang/cargo/pull/11224
https://github.com/dtolnay/rust-toolchain/pull/54
2023-01-21 18:18:27 +01:00
Jonas Bushart
685abf8306
Change some missed set-output commands to GITHUB_OUTPUT
2022-10-15 15:48:55 +02:00