Skip to content

Commit ba2aacc

Browse files
authored
Try #4437:
2 parents 328c26d + 12a925c commit ba2aacc

File tree

4 files changed

+73
-33
lines changed

4 files changed

+73
-33
lines changed

.github/bors.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ status = [
1515
"ci",
1616
"miri",
1717
"check-benches",
18+
"build-and-install-on-iOS",
19+
"run-examples-on-windows",
1820
]
1921

2022
use_squash_merge = true

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ jobs:
247247
248248
run-examples:
249249
runs-on: ubuntu-latest
250+
timeout-minutes: 30
250251
steps:
251252
- name: Install Bevy dependencies
252253
run: |
@@ -274,13 +275,13 @@ jobs:
274275
toolchain: stable
275276
- name: Build bevy
276277
run: |
277-
cargo build --no-default-features --features "bevy_dynamic_plugin,bevy_gilrs,bevy_gltf,bevy_winit,render,png,hdr,x11,bevy_ci_testing,trace,trace_chrome,bevy_audio,vorbis"
278+
cargo build --features "bevy_ci_testing,trace,trace_chrome"
278279
- name: Run examples
279280
run: |
280281
for example in .github/example-run/*.ron; do
281282
example_name=`basename $example .ron`
282283
echo "running $example_name - "`date`
283-
time CI_TESTING_CONFIG=$example xvfb-run cargo run --example $example_name --no-default-features --features "bevy_dynamic_plugin,bevy_gilrs,bevy_gltf,bevy_winit,render,png,hdr,x11,bevy_ci_testing,trace,trace_chrome,bevy_audio,vorbis"
284+
time CI_TESTING_CONFIG=$example xvfb-run cargo run --example $example_name --features "bevy_ci_testing,trace,trace_chrome"
284285
sleep 10
285286
done
286287
zip traces.zip trace*.json

.github/workflows/ios.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/validation-jobs.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: validation jobs
2+
3+
on:
4+
push:
5+
branches:
6+
- staging
7+
- trying
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build-and-install-on-iOS:
14+
runs-on: macos-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
override: true
22+
23+
- uses: actions/cache@v3
24+
with:
25+
path: |
26+
target
27+
key: ${{ runner.os }}-ios-install-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
28+
29+
- name: Add iOS targets
30+
run: rustup target add aarch64-apple-ios x86_64-apple-ios
31+
32+
- name: Build and install iOS app in iOS Simulator.
33+
run: cd examples/ios && make install
34+
35+
36+
run-examples-on-windows:
37+
runs-on: windows-latest
38+
timeout-minutes: 30
39+
steps:
40+
- uses: actions/checkout@v3
41+
42+
- uses: actions-rs/toolchain@v1
43+
with:
44+
toolchain: stable
45+
46+
- uses: actions/cache@v3
47+
with:
48+
path: |
49+
~/.cargo/bin/
50+
~/.cargo/registry/index/
51+
~/.cargo/registry/cache/
52+
~/.cargo/git/db/
53+
target/
54+
key: ${{ runner.os }}-windows-run-examples-${{ hashFiles('**/Cargo.toml') }}
55+
56+
- name: Build bevy
57+
run: |
58+
cargo build --features "bevy_ci_testing"
59+
60+
- name: Run examples
61+
shell: bash
62+
run: |
63+
for example in .github/example-run/*.ron; do
64+
example_name=`basename $example .ron`
65+
echo "running $example_name - "`date`
66+
time CI_TESTING_CONFIG=$example cargo run --example $example_name --features "bevy_ci_testing"
67+
sleep 10
68+
done

0 commit comments

Comments
 (0)