Skip to content

Commit 44a2b2b

Browse files
authored
Merge pull request #493 from rustcoreutils/copilot/create-windows-workflow
Add manually-triggered Windows build workflow
2 parents c230aeb + 68192d0 commit 44a2b2b

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Windows Build
2+
3+
on:
4+
workflow_dispatch: {}
5+
6+
env:
7+
CARGO_TERM_COLOR: always
8+
RUST_BACKTRACE: 1
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
windows-build:
15+
runs-on: windows-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup Rust toolchain
19+
uses: dtolnay/rust-toolchain@stable
20+
- name: Setup Rust cache
21+
uses: Swatinem/rust-cache@v2
22+
- name: System info
23+
run: |
24+
echo "=== Architecture ==="
25+
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
26+
echo "=== Toolchain ==="
27+
rustc --version
28+
cargo --version
29+
cl /? 2>&1 | findstr /C:"Version" || echo "MSVC not in PATH"
30+
- name: Fetch
31+
run: cargo fetch
32+
- name: Build
33+
run: cargo build --release --verbose
34+
- name: Run tests
35+
run: cargo test --release --verbose
36+
- name: Run fmt check
37+
run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)