From d65e01b7682ffb9b9dc99f9c93602b5ed90b984f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sun, 17 Jul 2022 14:43:35 +0000 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 3 ++- .github/workflows/validation-jobs.yml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1994a255c8..531297179c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/validation-jobs.yml b/.github/workflows/validation-jobs.yml index e64445fb7e..5f8f9b69a7 100644 --- a/.github/workflows/validation-jobs.yml +++ b/.github/workflows/validation-jobs.yml @@ -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