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
This commit is contained in:
François 2022-07-17 14:43:35 +00:00
parent 3fdf40d9c8
commit d65e01b768
2 changed files with 5 additions and 2 deletions

View file

@ -195,8 +195,9 @@ jobs:
with:
toolchain: stable
- name: Build bevy
# this uses the same command as when running the example to ensure build is reused
run: |
cargo build --features "bevy_ci_testing,trace,trace_chrome"
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"
- name: Run examples
run: |
for example in .github/example-run/*.ron; do

View file

@ -82,8 +82,10 @@ jobs:
key: ${{ runner.os }}-windows-run-examples-${{ hashFiles('**/Cargo.toml') }}
- name: Build bevy
shell: bash
# this uses the same command as when running the example to ensure build is reused
run: |
cargo build --features "bevy_ci_testing"
WGPU_BACKEND=dx12 CI_TESTING_CONFIG=.github/example-run/alien_cake_addict.ron cargo build --example alien_cake_addict --features "bevy_ci_testing"
- name: Run examples
shell: bash