Skip to content

Commit 7d11dd1

Browse files
committed
ci: Add windows jobs for MSRV, stable, beta, nightly
1 parent 502418f commit 7d11dd1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,29 @@ jobs:
3737
cargo build --verbose
3838
- run: |
3939
cargo test --verbose
40+
windows_build:
41+
name: windows ${{ matrix.rust }}
42+
runs-on: windows-latest
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
rust:
47+
- 1.30.0
48+
- stable
49+
- beta
50+
- nightly
51+
steps:
52+
- uses: actions/checkout@v4
53+
- uses: dtolnay/rust-toolchain@master
54+
with:
55+
toolchain: ${{ matrix.rust }}
56+
- run: rustup component add rustfmt-preview
57+
- name: cargo fmt --all -- --check if stable
58+
run: |
59+
if [ "${{ matrix.rust }}" = "stable" ]; then
60+
cargo fmt --all -- --check
61+
fi
62+
- run: |
63+
cargo build --verbose
64+
- run: |
65+
cargo test --verbose

0 commit comments

Comments
 (0)