Commit 31abafc
fix(ci): guard RUSTUP_TOOLCHAIN against empty PINNED_RUST on Windows
grep/awk in PINNED_RUST sh: evaluation fail on Windows runners where
Git Bash utilities aren't reliably in PATH. This produced
RUSTUP_TOOLCHAIN=-x86_64-pc-windows-msvc (empty prefix), causing
rustup to fail with "uninstalled toolchain".
- Suppress grep stderr and fall through on failure
- Only set RUSTUP_TOOLCHAIN when PINNED_RUST is non-empty
- When empty, falls through to toolchain installed by
actions-rust-lang/setup-rust-toolchain in the composite action
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a8497ee commit 31abafc
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments