Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
naomijub committed Apr 8, 2024
1 parent bd1ad91 commit 42ef842
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"

Expand All @@ -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"

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/example_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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=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
Expand Down Expand Up @@ -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
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=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
Expand Down Expand Up @@ -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
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=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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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
Expand Down

0 comments on commit 42ef842

Please sign in to comment.