Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Add skeleton for new CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile committed Apr 20, 2023
1 parent f7bf34f commit d50748e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/ci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand All @@ -18,6 +19,7 @@ enum Check {
DocTest,
DocCheck,
CompileCheck,
ValidateAssets,
}

impl Check {
Expand All @@ -30,6 +32,7 @@ impl Check {
Check::DocTest,
Check::DocCheck,
Check::CompileCheck,
Check::ValidateAssets,
]
.iter()
.copied()
Expand All @@ -45,6 +48,7 @@ impl Check {
Check::DocTest => "doctest",
Check::DocCheck => "doccheck",
Check::CompileCheck => "compilecheck",
Check::ValidateAssets => "assets",
}
}

Expand All @@ -57,6 +61,7 @@ impl Check {
"doctest" => Some(Check::DocTest),
"doccheck" => Some(Check::DocCheck),
"compilecheck" => Some(Check::CompileCheck),
"assets" => Some(Check::ValidateAssets),
_ => None,
}
}
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit d50748e

Please sign in to comment.