From d50748e76e37b2a6ac8b87b02ef01155c0c3add1 Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Wed, 19 Apr 2023 21:45:11 -0400 Subject: [PATCH] Add skeleton for new CI check --- tools/ci/src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/ci/src/main.rs b/tools/ci/src/main.rs index 4d62e6063..af4691870 100644 --- a/tools/ci/src/main.rs +++ b/tools/ci/src/main.rs @@ -6,6 +6,7 @@ //! - Official CI runs latest stable //! - Local runs use whatever the default Rust is locally +use bevy::prelude::*; use bevy::utils::HashSet; use xshell::{cmd, Shell}; @@ -18,6 +19,7 @@ enum Check { DocTest, DocCheck, CompileCheck, + ValidateAssets, } impl Check { @@ -30,6 +32,7 @@ impl Check { Check::DocTest, Check::DocCheck, Check::CompileCheck, + Check::ValidateAssets, ] .iter() .copied() @@ -45,6 +48,7 @@ impl Check { Check::DocTest => "doctest", Check::DocCheck => "doccheck", Check::CompileCheck => "compilecheck", + Check::ValidateAssets => "assets", } } @@ -57,6 +61,7 @@ impl Check { "doctest" => Some(Check::DocTest), "doccheck" => Some(Check::DocCheck), "compilecheck" => Some(Check::CompileCheck), + "assets" => Some(Check::ValidateAssets), _ => None, } } @@ -138,6 +143,11 @@ fn main() { .run() .expect("Please fix compiler errors in above output."); } + + if what_to_run.contains(&Check::ValidateAssets) { + info!("Starting Bevy app"); + App::new().run(); + } } #[cfg(test)]