Skip to content

Commit d4c6487

Browse files
authored
fix(cd): increase Windows stack size in release workflow (#318)
Signed-off-by: azjezz <[email protected]>
1 parent b4adb08 commit d4c6487

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/cd.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,14 @@ jobs:
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

0 commit comments

Comments
 (0)