From 196726e0f860556833643e30218516808024fed7 Mon Sep 17 00:00:00 2001 From: Matthew Gregan Date: Wed, 11 Dec 2024 11:18:07 +1300 Subject: [PATCH] wip2 --- xtask/Cargo.toml | 1 + xtask/src/main.rs | 27 +++++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 16d877a..0ea5c6f 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -2,5 +2,6 @@ name = "xtask" version = "0.2.0" edition = "2021" +publish = false [dependencies] diff --git a/xtask/src/main.rs b/xtask/src/main.rs index ea523ea..d151f2f 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -76,9 +76,8 @@ fn release() -> Result<(), DynError> { let status = Command::new(&cargo) .current_dir(project_root()) - .args(["publish", "--workspace", "--allow-dirty"]) + .args(["publish", "--package", "cubeb-sys", "--allow-dirty"]) .status()?; - if !status.success() { Err("cargo publish failed")?; } @@ -99,6 +98,30 @@ fn release() -> Result<(), DynError> { }) .unwrap(); + let status = Command::new(&cargo) + .current_dir(project_root()) + .args(["publish", "--package", "cubeb-core"]) + .status()?; + if !status.success() { + Err("cargo publish failed")?; + } + + let status = Command::new(&cargo) + .current_dir(project_root()) + .args(["publish", "--package", "cubeb-backend"]) + .status()?; + if !status.success() { + Err("cargo publish failed")?; + } + + let status = Command::new(&cargo) + .current_dir(project_root()) + .args(["publish", "--package", "cubeb"]) + .status()?; + if !status.success() { + Err("cargo publish failed")?; + } + Ok(()) }