Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 298 #300

Merged
merged 7 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Test ${{ matrix.os }} all features
timeout-minutes: 60
timeout-minutes: 120
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/example_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,51 @@ jobs:
with:
name: example-run-linux-external_plugin-${{ steps.date.outputs.date }}
path: example-run/

run-external_plugin-example-windows:
runs-on: windows-latest
timeout-minutes: 60
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- name: Build bevy
shell: bash
run: |
WGPU_BACKEND=dx12 TRACE_CHROME=trace-external_plugin.json CI_TESTING_CONFIG=.github/example-run/external_plugin.ron cargo build --bin plugin_test --release --features "bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
env:
RUSTFLAGS: "-C debuginfo=0"
- name: Run examples
shell: bash
env:
RUSTFLAGS: "-C debuginfo=0"
run: |
example_name=`basename plaformer.ron`
echo -n $example_name > last_example_run
echo "running external_plugin - "`date`
time WGPU_BACKEND=dx12 TRACE_CHROME=trace-external_plugin.json CI_TESTING_CONFIG=.github/example-run/external_plugin.ron cargo run --release --bin plugin_test --features "bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
sleep 10
if [ `find ./ -maxdepth 1 -name 'screenshot-*.png' -print -quit` ]; then
mkdir screenshots-external_plugin
mv screenshot-*.png screenshots-external_plugin/
fi
mkdir traces && mv trace*.json traces/
mkdir screenshots && mv screenshots-* screenshots/
- name: save traces
uses: actions/upload-artifact@v4
with:
name: example-traces-windows-external_plugin-${{ steps.date.outputs.date }}
path: traces
- name: save screenshots
uses: actions/upload-artifact@v4
with:
name: screenshots-windows-external_plugin-${{ steps.date.outputs.date }}
path: screenshots
- uses: actions/upload-artifact@v4
if: ${{ failure() && github.event_name == 'pull_request' }}
with:
name: example-run-windows-external_plugin-${{ steps.date.outputs.date }}
path: example-run/
Loading
Loading