Multiple changes:
All checks were successful
CI / build (push) Successful in 16m23s
CI / snap (push) Successful in 4m1s

- deb: can use ppa as dependency
- deb: cross and regular are using parallel nocheck builds
- deb: ephemeral will not pull keyring if no root powers
This commit is contained in:
2026-02-06 12:04:25 +01:00
parent 225157be63
commit 8345f51d2f
11 changed files with 233 additions and 16 deletions

View File

@@ -23,6 +23,7 @@ pub async fn build_binary_package(
cwd: Option<&Path>,
cross: bool,
mode: Option<BuildMode>,
ppa: Option<&str>,
) -> Result<(), Box<dyn Error>> {
let cwd = cwd.unwrap_or_else(|| Path::new("."));
@@ -68,7 +69,9 @@ pub async fn build_binary_package(
// Run the build using target build mode
match mode {
BuildMode::Local => local::build(&package, &version, arch, series, &build_root, cross)?,
BuildMode::Local => {
local::build(&package, &version, arch, series, &build_root, cross, ppa).await?
}
BuildMode::Sbuild => sbuild::build(&package, &version, arch, series, &build_root, cross)?,
};
@@ -227,7 +230,7 @@ mod tests {
log::debug!("Package directory: {}", cwd.display());
log::info!("Starting binary package build...");
crate::deb::build_binary_package(arch, Some(series), Some(&cwd), cross, None)
crate::deb::build_binary_package(arch, Some(series), Some(&cwd), cross, None, None)
.await
.expect("Cannot build binary package (deb)");
log::info!("Successfully built binary package");