Skip to content

Commit 045429e

Browse files
Copilotjgarzik
andcommitted
Improve Windows workflow: add Rust toolchain setup, caching, and better diagnostics
Co-authored-by: jgarzik <[email protected]>
1 parent b80936b commit 045429e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/windows-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ jobs:
1212
runs-on: windows-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
- name: Setup Rust toolchain
16+
uses: dtolnay/rust-toolchain@stable
17+
- name: Setup Rust cache
18+
uses: Swatinem/rust-cache@v2
1519
- name: System info
1620
run: |
1721
echo "=== Architecture ==="
1822
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
1923
echo "=== Toolchain ==="
2024
rustc --version
2125
cargo --version
26+
cl /? 2>&1 | findstr /C:"Version" || echo "MSVC not in PATH"
2227
- name: Fetch
2328
run: cargo fetch
2429
- name: Build

0 commit comments

Comments
 (0)