Skip to content

Commit

Permalink
time
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Sep 11, 2023
1 parent e09e766 commit 38834d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/stuff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
cargo build --example asset_processing --features "filesystem_watcher,bevy_ci_testing"
& { Start-Sleep -s 1; sed -i.bak 's/"a"/"modified"/' examples/asset/processing/assets/a.cool.ron; } &
cargo run --example asset_processing --no-default-features --features "filesystem_watcher,bevy_asset,multi-threaded"
cargo run --example asset_processing --no-default-features --features "filesystem_watcher,bevy_asset,multi-threaded,bevy_ci_testing"
cat examples/asset/processing/imported_assets/a.cool.ron
env:
CI_TESTING_CONFIG: .github/example-run/alien_cake_addict.ron
9 changes: 9 additions & 0 deletions examples/asset/processing/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,18 @@ fn main() {

#[cfg(feature = "bevy_winit")]
app.run();

#[cfg(not(feature = "bevy_winit"))]
loop {
app.update();
if !app
.world
.resource_mut::<Events<bevy_internal::app::AppExit>>()
.is_empty()
{
break;
}
std::thread::sleep(std::time::Duration::from_millis(25));
}
}

Expand Down

0 comments on commit 38834d5

Please sign in to comment.