Skip to content

Commit d65e01b

Browse files
committed
windows CI: use exact same command to prebuild (#5352)
# Objective - Running examples on windows crash due to full disk - The prebuild step was not being reused and consuming extra space ## Solution - Use the exact same command to prebuild to ensure it will be reused - Also on linux
1 parent 3fdf40d commit d65e01b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ jobs:
195195
with:
196196
toolchain: stable
197197
- name: Build bevy
198+
# this uses the same command as when running the example to ensure build is reused
198199
run: |
199-
cargo build --features "bevy_ci_testing,trace,trace_chrome"
200+
TRACE_CHROME=trace-alien_cake_addict.json CI_TESTING_CONFIG=.github/example-run/alien_cake_addict.ron cargo build --example alien_cake_addict --features "bevy_ci_testing,trace,trace_chrome"
200201
- name: Run examples
201202
run: |
202203
for example in .github/example-run/*.ron; do

.github/workflows/validation-jobs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ jobs:
8282
key: ${{ runner.os }}-windows-run-examples-${{ hashFiles('**/Cargo.toml') }}
8383

8484
- name: Build bevy
85+
shell: bash
86+
# this uses the same command as when running the example to ensure build is reused
8587
run: |
86-
cargo build --features "bevy_ci_testing"
88+
WGPU_BACKEND=dx12 CI_TESTING_CONFIG=.github/example-run/alien_cake_addict.ron cargo build --example alien_cake_addict --features "bevy_ci_testing"
8789
8890
- name: Run examples
8991
shell: bash

0 commit comments

Comments
 (0)