File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,15 @@ jobs:
173173 cargo -V
174174 rustc -V
175175
176+ - name : build (Windows)
177+ if : contains(matrix.job.target, '-pc-windows-')
178+ shell : bash
179+ env :
180+ RUSTFLAGS : " -C link-arg=/STACK:8388608"
181+ run : $BUILD_CMD build --locked --release --target=${{ matrix.job.target }}
182+
176183 - name : build
184+ if : " !(contains(matrix.job.target, '-pc-windows-'))"
177185 shell : bash
178186 run : $BUILD_CMD build --locked --release --target=${{ matrix.job.target }}
179187
@@ -199,8 +207,15 @@ jobs:
199207 echo "binary for target '${{ matrix.job.target }}' requires the following GLIBC versions:"
200208 strings "${{ steps.bin.outputs.BIN_PATH }}" | grep GLIBC_ || echo "No GLIBC version strings found."
201209
202- - name : run tests
203- if : matrix.job.test && !startsWith(github.ref, 'refs/pull/')
210+ - name : run tests (Windows)
211+ if : matrix.job.test && !startsWith(github.ref, 'refs/pull/') && contains(matrix.job.target, '-pc-windows-')
212+ shell : bash
213+ env :
214+ RUSTFLAGS : " -C link-arg=/STACK:8388608"
215+ run : $BUILD_CMD test --workspace --locked --target=${{ matrix.job.target }}
216+
217+ - name : run tests (non-Windows)
218+ if : matrix.job.test && !startsWith(github.ref, 'refs/pull/') && !contains(matrix.job.target, '-pc-windows-')
204219 shell : bash
205220 run : $BUILD_CMD test --workspace --locked --target=${{ matrix.job.target }}
206221
Original file line number Diff line number Diff line change 5757 if : matrix.os == 'macos-latest'
5858 run : cargo clippy --workspace --all-targets --all-features -- -D warnings
5959
60- - name : cargo test
60+ - name : cargo test (Windows)
61+ if : matrix.os == 'windows-latest'
62+ env :
63+ RUSTFLAGS : " -C link-arg=/STACK:8388608"
64+ run : cargo test --workspace --locked --all-targets
65+
66+ - name : cargo test (macOS & Linux)
67+ if : matrix.os != 'windows-latest'
6168 run : cargo test --workspace --locked --all-targets
6269
6370 - name : cargo build
You can’t perform that action at this time.
0 commit comments