diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ed07a57..11d6277f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -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 @@ -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" @@ -83,7 +83,7 @@ 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" @@ -91,7 +91,7 @@ jobs: # Run cargo clippy -- -D warnings clippy_check: name: Clippy - runs-on: ubicloud + runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout sources diff --git a/.github/workflows/example_validation.yml b/.github/workflows/example_validation.yml index f5f29174..150930d6 100644 --- a/.github/workflows/example_validation.yml +++ b/.github/workflows/example_validation.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/Cargo.toml b/Cargo.toml index d49ec87c..978e214a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"