Skip to content

Commit

Permalink
wip2
Browse files Browse the repository at this point in the history
  • Loading branch information
kinetiknz committed Dec 10, 2024
1 parent 018a2d2 commit 196726e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
name = "xtask"
version = "0.2.0"
edition = "2021"
publish = false

[dependencies]
27 changes: 25 additions & 2 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;
}
Expand All @@ -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(())
}

Expand Down

0 comments on commit 196726e

Please sign in to comment.