Skip to content

Commit 7730fc3

Browse files
committed
Split Windows job into three
1 parent f88028e commit 7730fc3

1 file changed

Lines changed: 27 additions & 11 deletions

File tree

.github/workflows/windows.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,45 @@ on:
66
branches: master
77

88
jobs:
9-
test:
10-
strategy:
11-
matrix:
12-
platform:
13-
- windows-latest
14-
toolchain:
15-
- stable
16-
runs-on: ${{ matrix.platform }}
9+
test-native:
10+
runs-on: windows-latest
1711
steps:
1812
- uses: actions/checkout@v2
1913
- uses: swatinem/rust-cache@v2
2014
- uses: dtolnay/rust-toolchain@stable
2115
with:
22-
toolchain: ${{ matrix.toolchain }}
16+
toolchain: stable
2317
profile: minimal
2418
override: true
25-
targets: "wasm32-unknown-unknown,i686-pc-windows-msvc"
26-
- name: "Test on the native x86_64-pc-windows-mscv"
19+
- name: "Test on the native x86_64-pc-windows-msvc"
2720
run: cargo test --all-features --workspace
21+
22+
test-cross-gnu:
23+
runs-on: windows-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: swatinem/rust-cache@v2
27+
- uses: dtolnay/rust-toolchain@stable
28+
with:
29+
toolchain: stable
30+
profile: minimal
31+
override: true
2832
- name: "Test when cross-compiling to x86_64-pc-windows-gnu"
2933
env:
3034
AUDITABLE_TEST_TARGET: "x86_64-pc-windows-gnu"
3135
run: cargo test --all-features --workspace
36+
37+
test-cross-i686-msvc:
38+
runs-on: windows-latest
39+
steps:
40+
- uses: actions/checkout@v2
41+
- uses: swatinem/rust-cache@v2
42+
- uses: dtolnay/rust-toolchain@stable
43+
with:
44+
toolchain: stable
45+
profile: minimal
46+
override: true
47+
targets: "i686-pc-windows-msvc"
3248
- name: "Test when cross-compiling to i686-pc-windows-msvc"
3349
env:
3450
AUDITABLE_TEST_TARGET: "i686-pc-windows-msvc"

0 commit comments

Comments
 (0)