You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this action in multiple jobs in the same workflow, the
generated cache key is the same for all of them. 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.
| `cache-workspaces` | Propagates the value to [`Swatinem/rust-cache`] | |
58
58
| `cache-on-failure` | Propagates the value to [`Swatinem/rust-cache`] | true |
59
+
| `key` | Propagates the value to [`Swatinem/rust-cache`] | |
59
60
| `matcher` | Enable problem matcher to surface build messages and formatting issues | true |
60
61
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
61
62
@@ -66,10 +67,10 @@ Afterward, the `components` and `target` specified via inputs are installed in a
66
67
By default, this action sets the `RUSTFLAGS` environment variable to `-D warnings`.
67
68
However, rustflags sources are mutually exclusive, so setting this environment variable omits any configuration through `target.*.rustflags` or `build.rustflags`.
68
69
69
-
* If `RUSTFLAGS` is already set, no modifications of the variable are made and the original value remains.
70
-
* If `RUSTFLAGS` is unset and the `rustflags` input is empty (i.e., the empty string), then it will remain unset.
71
-
Use this, if you want to prevent the value from being set because you make use of `target.*.rustflags` or `build.rustflags`.
72
-
* Otherwise, the environment variable `RUSTFLAGS` is set to the content of `rustflags`.
70
+
-If `RUSTFLAGS` is already set, no modifications of the variable are made and the original value remains.
71
+
-If `RUSTFLAGS` is unset and the `rustflags` input is empty (i.e., the empty string), then it will remain unset.
72
+
Use this, if you want to prevent the value from being set because you make use of `target.*.rustflags` or `build.rustflags`.
73
+
-Otherwise, the environment variable `RUSTFLAGS` is set to the content of `rustflags`.
73
74
74
75
To prevent this from happening, set the `rustflags` input to an empty string, which will
75
76
prevent the action from setting `RUSTFLAGS` at all, keeping any existing preferences.
0 commit comments