Use cargo check
@@ -50,7 +50,7 @@ fn test_ci() -> Result<(), anyhow::Error> {
] {
let mut example_dir = examples_dir.clone();
example_dir.push(example);
- test_example(example_dir)?;
+ check_example(example_dir)?;
}
Ok(())
}
@@ -91,10 +91,10 @@ fn do_examples<F: FnMut(PathBuf) -> Result<(), anyhow::Error>>(
Ok(())
}
-fn test_example(project_file: PathBuf) -> Result<(), anyhow::Error> {
+fn check_example(project_file: PathBuf) -> Result<(), anyhow::Error> {
println!("Building example {}", project_file.to_str().unwrap_or(""));
- let _p = xshell::pushd(project_file)?; //.parent().unwrap())?;
- cmd!("cargo build --release").run()?;
+ let _p = xshell::pushd(project_file)?;
+ cmd!("cargo check").run()?;
Ok(())
}
