Skip to content

Commit

Permalink
chore: Enable releases for the test crates
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed Feb 4, 2025
1 parent 5e1bae0 commit 0d4bc65
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
4 changes: 4 additions & 0 deletions bindings/matrix-sdk-ffi-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
rust-version = { workspace = true }
version = "0.7.0"
publish = false

[lib]
proc-macro = true
Expand All @@ -22,3 +23,6 @@ syn = { version = "2.0.43", features = ["full", "extra-traits"] }

[lints]
workspace = true

[package.metadata.release]
release = false
7 changes: 7 additions & 0 deletions testing/matrix-sdk-test-macros/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

All notable changes to this project will be documented in this file.

<!-- next-header -->

## [Unreleased] - ReleaseDate
2 changes: 1 addition & 1 deletion testing/matrix-sdk-test-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ syn = { version = "2.0.43", features = ["full", "extra-traits"] }
workspace = true

[package.metadata.release]
release = false
release = true
7 changes: 7 additions & 0 deletions testing/matrix-sdk-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

All notable changes to this project will be documented in this file.

<!-- next-header -->

## [Unreleased] - ReleaseDate
4 changes: 2 additions & 2 deletions testing/matrix-sdk-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ doctest = false
as_variant = { workspace = true }
http = { workspace = true }
insta = { workspace = true }
matrix-sdk-common = { path = "../../crates/matrix-sdk-common" }
matrix-sdk-common = { version = "0.9.0", path = "../../crates/matrix-sdk-common" }
matrix-sdk-test-macros = { version = "0.7.0", path = "../matrix-sdk-test-macros" }
once_cell = { workspace = true }
# Enable the unstable feature for polls support.
Expand All @@ -43,4 +43,4 @@ wasm-bindgen-test = "0.3.33"
workspace = true

[package.metadata.release]
release = false
release = true
8 changes: 4 additions & 4 deletions xtask/src/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn check_prerequisites() {

fn prepare(version: ReleaseVersion, execute: bool) -> Result<()> {
let sh = sh();
let cmd = cmd!(sh, "cargo release --no-publish --no-tag --no-push");
let cmd = cmd!(sh, "cargo release --workspace --no-publish --no-tag --no-push");

let cmd = if execute { cmd.arg("--execute") } else { cmd };
let cmd = cmd.arg(version.as_str());
Expand All @@ -111,15 +111,15 @@ fn prepare(version: ReleaseVersion, execute: bool) -> Result<()> {
fn publish(execute: bool) -> Result<()> {
let sh = sh();

let cmd = cmd!(sh, "cargo release tag");
let cmd = cmd!(sh, "cargo release tag --workspace");
let cmd = if execute { cmd.arg("--execute") } else { cmd };
cmd.run()?;

let cmd = cmd!(sh, "cargo release publish");
let cmd = cmd!(sh, "cargo release publish --workspace");
let cmd = if execute { cmd.arg("--execute") } else { cmd };
cmd.run()?;

let cmd = cmd!(sh, "cargo release push");
let cmd = cmd!(sh, "cargo release push --workspace");
let cmd = if execute { cmd.arg("--execute") } else { cmd };
cmd.run()?;

Expand Down

0 comments on commit 0d4bc65

Please sign in to comment.