Commit Graph

80 Commits

Author SHA1 Message Date
David Tolnay
1c0547fbe5 Permit cross-device copy 2025-12-16 09:04:42 -08:00
David Tolnay
0185c06042 Fix update-revs.sh to recognize only the intended required: true 2025-08-22 18:03:43 -07:00
David Tolnay
6ded28b5b7 Try without comment? 2025-08-22 17:47:59 -07:00
David Tolnay
f6642a8e0a Try without backtick? 2025-08-22 17:42:45 -07:00
David Tolnay
87f0783588 Enforce that required toolchain input is provided 2025-08-22 16:59:00 -07:00
David Tolnay
6ff96e92a9 Clean up trailing whitespace from PR 145 2025-04-29 12:20:14 -07:00
David Tolnay
d69c8f6cd5 Use rustup.rs advertised download URLs 2025-04-29 12:17:54 -07:00
David Tolnay
eceb16e78c Respect pre-existing CARGO_HOME on Windows 2025-04-29 12:15:51 -07:00
David Tolnay
f36efbae07 Fix GITHUB_PATH 2025-04-29 12:11:57 -07:00
David Tolnay
802126c77d Consistently use backslash directories on Windows 2025-04-29 12:03:48 -07:00
David Tolnay
1f3b09e73e Download rustup-init.exe to temp dir instead of current dir 2025-04-29 11:53:20 -07:00
David Tolnay
1c80aedd72 Align curl and rustup-init flags between windows and non-windows 2025-04-29 11:37:07 -07:00
Joe Polny
d8b2468e88 Install rustup on windows (including ARM)
The x86 logic might be overkill since right now x86 Windows images
already have it installed, but figured might as well support it just in
case. Closes #143
2025-04-29 13:53:42 -04:00
David Tolnay
aacd1c2ea3 Append zeros to toolchain versions truncated by GitHub 2024-12-13 20:40:43 -08:00
David Tolnay
2d6236e914 Ignore 'rustup default' failure 2024-11-17 20:13:42 -08:00
David Tolnay
d8352f6b1d Move CARGO_HOME step in front of rustup install 2024-05-01 09:11:35 -07:00
David Tolnay
22eb75fbe0 Add description for CARGO_HOME step 2024-05-01 09:09:04 -07:00
David Tolnay
e4e1c59547 Combine CARGO_HOME choice into a single step 2024-05-01 09:06:11 -07:00
Dario Curreri
18c33afdda Add CARGO_HOME to GITHUB_ENV 2024-04-30 10:58:18 +02:00
David Tolnay
56909e6633 Centralize references to inputs.toolchain to a single spot 2024-04-14 11:33:35 -07:00
David Tolnay
6f2eb0d01b Work around spurious network errors in curl 8.0 2023-09-07 13:19:27 -07:00
David Tolnay
0d263d75b1 Omit CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse on rustc 1.70+ 2023-06-24 16:26:12 -07:00
David Tolnay
b051cf32dc Expand curl flags 2023-06-19 10:58:08 -07:00
David Tolnay
df6c627e20 Overwrite previously set CARGO_REGISTRIES_CRATES_IO_PROTOCOL 2023-02-15 13:28:23 -08:00
David Tolnay
0313d8c868 Pass empty string to -z, instead of no arg
This plays better with extending these conditionals with an `-o` or `-a`.
2023-02-15 13:11:48 -08:00
David Tolnay
e6d955b6b3 Fix 'syntax error near unexpected token !' 2023-02-15 03:32:46 -08:00
David Tolnay
9fd0ad29be Fix not -> ! 2023-02-15 03:32:09 -08:00
David Tolnay
138ed95c4e Tweak sparse registry conditional 2023-02-12 13:04:46 -08:00
David Tolnay
b17a489743 Move sparse registry comment out of section title 2023-02-12 12:46:53 -08:00
David Tolnay
edee0abeb7 Revert "Enable -Zrandomize-layout on nightly toolchain"
This reverts commit f4baa51409.
2023-02-12 12:39:40 -08:00
David Tolnay
f4baa51409 Enable -Zrandomize-layout on nightly toolchain 2023-02-12 12:25:10 -08:00
David Tolnay
de1aa37b50 Set CARGO_REGISTRIES_CRATES_IO_PROTOCOL 2023-02-12 12:08:23 -08:00
David Tolnay
5dd156c2f5 Do not override value of an already set environment variable 2023-02-12 11:45:44 -08:00
David Tolnay
0b8aa5ea11 Touch up spacing in rustup command 2023-02-12 11:42:32 -08:00
David Tolnay
0c819c9641 Fix CI workflow parse error
Error: /home/runner/work/rust-toolchain/rust-toolchain/./action.yml (Line: 27, Col: 18): A template expression is not allowed in this context
    Error: /home/runner/work/rust-toolchain/rust-toolchain/./action.yml (Line: 27, Col: 18): A template expression is not allowed in this context
    Error: GitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid. /home/runner/work/rust-toolchain/rust-toolchain/./action.yml (Line: 27, Col: 18): A template expression is not allowed in this context
       at GitHub.DistributedTask.ObjectTemplating.TemplateValidationErrors.Check()
       at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
       at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
    Error: Fail to load /home/runner/work/rust-toolchain/rust-toolchain/./action.yml
2023-01-31 13:00:22 -08:00
David Tolnay
5e9debf6f0 Add output providing the installed toolchain name 2023-01-31 12:54:16 -08:00
David Tolnay
d7bc4da3d8 Bash comment 2023-01-31 12:10:48 -08:00
David Tolnay
60436bd17a Delete stable sparse registry env variable
Fixes #56.
2023-01-31 12:09:10 -08:00
David Tolnay
38c74e42a6 Fix sparse registries environment variable 2023-01-31 11:48:33 -08:00
Alex Gaynor
60cdf46ba8 Also enable sparse registries with the _new_ environment variable
Changed yesterday: https://github.com/rust-lang/cargo/pull/11224
2023-01-21 10:45:57 -05:00
David Tolnay
bf2c4a29d0 Enable Cargo nightly sparse-registry feature 2023-01-19 13:37:00 -08:00
David Tolnay
ba4a065776 Enable colors in Cargo output 2022-10-24 19:18:00 -07:00
David Tolnay
bb53cd0164 Switch from set-output to $GITHUB_OUTPUT 2022-10-13 09:30:53 -07:00
David Tolnay
b6a0604e19 Make sure the 'ago' syntax specifies 'stable' 2022-09-25 07:56:42 -07:00
David Tolnay
dab5f91926 Add toolchain expressions like '18 months ago' 2022-09-25 06:38:21 -07:00
Wolfgang Silbermayr
1f4843331b Add to GITHUB_PATH with $HOME instead of ~ 2022-08-02 12:05:00 +02:00
David Tolnay
415f4eec04 Fix typo in inputs expression 2022-07-20 14:55:40 -07:00
David Tolnay
404bb95f09 Do the fallback from targets to target as a yaml expression 2022-07-20 14:53:46 -07:00
David Tolnay
c9932df3e4 Fix targets input 2022-07-20 14:51:07 -07:00
David Tolnay
8514966bb2 Format targets conditional more compactly 2022-07-20 14:46:26 -07:00