ci: Run clippy and test for every feature individually

This commit is contained in:
Gerald Pinder 2024-09-28 22:36:07 -04:00
parent f0679fdd11
commit 37a69df832
3 changed files with 24 additions and 4 deletions

View file

@ -149,7 +149,7 @@ impl BlueBuildCommand for GenerateIsoCommand {
#[cfg(not(feature = "multi-recipe"))]
let mut build_command = {
BuildCommand::builder()
.recipe(recipe.to_path_buf())
.recipe(recipe.clone())
.archive(image_out_dir.path())
.build()
};

View file

@ -66,12 +66,20 @@ impl BlueBuildCommand for SwitchCommand {
let tempdir = TempDir::new("oci-archive").into_diagnostic()?;
trace!("{tempdir:?}");
#[cfg(feature = "multi-recipe")]
BuildCommand::builder()
.recipe([self.recipe.clone()])
.archive(tempdir.path())
.force(self.force)
.build()
.try_run()?;
#[cfg(not(feature = "multi-recipe"))]
BuildCommand::builder()
.recipe(self.recipe.clone())
.archive(tempdir.path())
.force(self.force)
.build()
.try_run()?;
let recipe = Recipe::parse(&self.recipe)?;
let image_file_name = format!(