diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f05dc265..d73f90db 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,9 +41,9 @@ jobs: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev sudo apt-get install lld clang - name: Compile - run: cargo test --no-run --locked --profile=release-fast + run: cargo test --no-run --locked --release - name: Run cargo test - run: cargo test --workspace --no-default-features --profile=release-fast + run: cargo test --workspace --no-default-features --release env: RUSTFLAGS: "-C debuginfo=0" @@ -62,9 +62,9 @@ jobs: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev sudo apt-get install lld clang - name: Compile - run: cargo test --no-run --locked --profile=release-fast + run: cargo test --no-run --locked --release - name: Run cargo test - run: cargo test --workspace --all-features --profile=release-fast + run: cargo test --workspace --all-features --release env: RUSTFLAGS: "-C debuginfo=0" @@ -87,9 +87,9 @@ jobs: cargo install -f cargo-binutils rustup component add llvm-tools-preview - name: Compile - run: cargo test --no-run --locked --profile=release-fast + run: cargo test --no-run --locked --release - name: Run cargo test - run: cargo test --workspace --all-features --profile=release-fast + run: cargo test --workspace --all-features --release env: RUSTFLAGS: "-C debuginfo=0" diff --git a/.github/workflows/example_validation.yml b/.github/workflows/example_validation.yml index 1fff0101..67e4282f 100644 --- a/.github/workflows/example_validation.yml +++ b/.github/workflows/example_validation.yml @@ -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=release-fast --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 --release --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=release-fast --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 --release --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 @@ -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=release-fast --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 --release --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=release-fast --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 --release --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 @@ -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=release-fast --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 --release --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=release-fast --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 --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 diff --git a/Cargo.toml b/Cargo.toml index cca7a02b..62435f67 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -101,6 +101,7 @@ backtrace-on-stack-overflow = {version = "0.3", optional = true} [workspace.lints.rust] future-incompatible = "warn" nonstandard_style = "deny" +non_local_definitions = { level = "allow", priority = 2 } [workspace.lints.clippy] nursery = { level = "deny", priority = -1 } @@ -119,7 +120,6 @@ needless_pass_by_ref_mut = { level = "allow", priority = 2 } significant_drop_in_scrutinee = { level = "allow", priority = 2 } significant_drop_tightening = { level = "allow", priority = 2 } too_many_arguments = { level = "allow", priority = 2 } -non_local_definitions = { level = "allow", priority = 2 } [lints] workspace = true