ci: Run clippy and test for every feature individually
This commit is contained in:
parent
f0679fdd11
commit
37a69df832
3 changed files with 24 additions and 4 deletions
|
|
@ -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()
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue