Skip to content

Commit

Permalink
back-to-ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
naomijub committed Apr 8, 2024
1 parent e5f3219 commit 63b2fa0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Run cargo nextest run
test_minimal:
name: Test without features
runs-on: ubicloud
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
Expand All @@ -42,13 +42,13 @@ jobs:
sudo apt-get install lld clang
cargo install cargo-nextest
- name: Run cargo nextest run
run: cargo nextest run --workspace --no-default-features --profile ci
run: cargo nextest run --workspace --no-default-features --profile=release-ci
env:
RUSTFLAGS: "-C debuginfo=0"

test_all:
name: Test all features
runs-on: ubicloud
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
Expand All @@ -62,7 +62,7 @@ jobs:
sudo apt-get install lld clang
cargo install cargo-nextest
- name: Run cargo nextest run
run: cargo nextest run --workspace --all-features --profile ci
run: cargo nextest run --workspace --all-features --profile=release-ci
env:
RUSTFLAGS: "-C debuginfo=0"

Expand All @@ -83,15 +83,15 @@ jobs:
run: |
cargo install cargo-nextest
- name: Run cargo nextest run
run: cargo nextest run --workspace --all-features --profile ci
run: cargo nextest run --workspace --all-features --profile=release-ci
env:
RUSTFLAGS: "-C debuginfo=0"


# Run cargo clippy -- -D warnings
clippy_check:
name: Clippy
runs-on: ubicloud
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/example_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
jobs:

run-platformer-example-linux:
runs-on: ubicloud
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get current date
Expand All @@ -45,7 +45,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Build bevy
# this uses the same command as when running the example to ensure build is reused
run: CARGO_PROFILE_RELEASE_DEBUG=true TRACE_CHROME=trace-platformer.json CI_TESTING_CONFIG=.github/example-run/platformer.ron cargo +nightly build --example platformer --profile ci --features "bevy_xpbd_3d,bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace,backtrace"
run: CARGO_PROFILE_RELEASE_DEBUG=true TRACE_CHROME=trace-platformer.json CI_TESTING_CONFIG=.github/example-run/platformer.ron cargo +nightly build --example platformer --profile=release-ci --features "bevy_xpbd_3d,bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace,backtrace"
env:
RUSTFLAGS: "-C debuginfo=0"
- name: Run examples
Expand All @@ -55,7 +55,7 @@ jobs:
example_name=`basename plaformer.ron`
echo -n $example_name > last_example_run
echo "running platformer - "`date`
time CARGO_PROFILE_RELEASE_DEBUG=true TRACE_CHROME=trace-platformer.json CI_TESTING_CONFIG=.github/example-run/platformer.ron xvfb-run cargo +nightly run --profile ci --example platformer --features "backtrace,bevy_xpbd_3d,bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
time CARGO_PROFILE_RELEASE_DEBUG=true TRACE_CHROME=trace-platformer.json CI_TESTING_CONFIG=.github/example-run/platformer.ron xvfb-run cargo +nightly run --profile=release-ci --example platformer --features "backtrace,bevy_xpbd_3d,bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
sleep 10
if [ `find ./ -maxdepth 1 -name 'screenshot-*.png' -print -quit` ]; then
mkdir screenshots-platformer
Expand All @@ -80,7 +80,7 @@ jobs:
path: example-run/

run-spawn_prefab_with_physics-example-linux:
runs-on: ubicloud
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get current date
Expand All @@ -106,7 +106,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Build bevy
# this uses the same command as when running the example to ensure build is reused
run: TRACE_CHROME=trace-spawn_prefab_with_physics.json CI_TESTING_CONFIG=.github/example-run/spawn_prefab_with_physics.ron cargo +nightly build --example spawn_prefab_with_physics --profile ci --features "bevy_xpbd_3d,bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
run: TRACE_CHROME=trace-spawn_prefab_with_physics.json CI_TESTING_CONFIG=.github/example-run/spawn_prefab_with_physics.ron cargo +nightly build --example spawn_prefab_with_physics --profile=release-ci --features "bevy_xpbd_3d,bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
env:
RUSTFLAGS: "-C debuginfo=0"
- name: Run examples
Expand All @@ -116,7 +116,7 @@ jobs:
example_name=`basename plaformer.ron`
echo -n $example_name > last_example_run
echo "running spawn_prefab_with_physics - "`date`
time TRACE_CHROME=trace-spawn_prefab_with_physics.json CI_TESTING_CONFIG=.github/example-run/spawn_prefab_with_physics.ron xvfb-run cargo +nightly run --profile ci --example spawn_prefab_with_physics --features "bevy_xpbd_3d,bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
time TRACE_CHROME=trace-spawn_prefab_with_physics.json CI_TESTING_CONFIG=.github/example-run/spawn_prefab_with_physics.ron xvfb-run cargo +nightly run --profile=release-ci --example spawn_prefab_with_physics --features "bevy_xpbd_3d,bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
sleep 10
if [ `find ./ -maxdepth 1 -name 'screenshot-*.png' -print -quit` ]; then
mkdir screenshots-spawn_prefab_with_physics
Expand All @@ -141,7 +141,7 @@ jobs:
path: example-run/

run-external_plugin-example-linux:
runs-on: ubicloud
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get current date
Expand All @@ -167,7 +167,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Build bevy
# this uses the same command as when running the example to ensure build is reused
run: TRACE_CHROME=trace-external_plugin.json CI_TESTING_CONFIG=.github/example-run/external_plugin.ron cargo +nightly build --bin plugin_test --profile ci --features "bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
run: TRACE_CHROME=trace-external_plugin.json CI_TESTING_CONFIG=.github/example-run/external_plugin.ron cargo +nightly build --bin plugin_test --profile=release-ci --features "bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
env:
RUSTFLAGS: "-C debuginfo=0"
- name: Run examples
Expand All @@ -177,7 +177,7 @@ jobs:
example_name=`basename plaformer.ron`
echo -n $example_name > last_example_run
echo "running external_plugin - "`date`
time TRACE_CHROME=trace-external_plugin.json CI_TESTING_CONFIG=.github/example-run/external_plugin.ron xvfb-run cargo +nightly run --profile ci --bin plugin_test --features "bevy/bevy_ci_testing,bevy/trace_chrome,bevy/trace"
time TRACE_CHROME=trace-external_plugin.json CI_TESTING_CONFIG=.github/example-run/external_plugin.ron xvfb-run cargo +nightly run --profile=release-ci --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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ incremental = true # works well when target/ is stored
[profile.dev.package."*"]
opt-level = 3

[profile.ci]
[profile.release-ci]
inherits = "release"
debug = 0
strip = "debuginfo"
Expand Down

0 comments on commit 63b2fa0

Please sign in to comment.