From 0d4bc65e284b0243b1b888f5c1e05d8309435baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 3 Feb 2025 14:05:52 +0100 Subject: [PATCH] chore: Enable releases for the test crates --- bindings/matrix-sdk-ffi-macros/Cargo.toml | 4 ++++ testing/matrix-sdk-test-macros/CHANGELOG.md | 7 +++++++ testing/matrix-sdk-test-macros/Cargo.toml | 2 +- testing/matrix-sdk-test/CHANGELOG.md | 7 +++++++ testing/matrix-sdk-test/Cargo.toml | 4 ++-- xtask/src/release.rs | 8 ++++---- 6 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 testing/matrix-sdk-test-macros/CHANGELOG.md create mode 100644 testing/matrix-sdk-test/CHANGELOG.md diff --git a/bindings/matrix-sdk-ffi-macros/Cargo.toml b/bindings/matrix-sdk-ffi-macros/Cargo.toml index 54fb31ea7d5..b017169af35 100644 --- a/bindings/matrix-sdk-ffi-macros/Cargo.toml +++ b/bindings/matrix-sdk-ffi-macros/Cargo.toml @@ -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 @@ -22,3 +23,6 @@ syn = { version = "2.0.43", features = ["full", "extra-traits"] } [lints] workspace = true + +[package.metadata.release] +release = false diff --git a/testing/matrix-sdk-test-macros/CHANGELOG.md b/testing/matrix-sdk-test-macros/CHANGELOG.md new file mode 100644 index 00000000000..989f61effde --- /dev/null +++ b/testing/matrix-sdk-test-macros/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +All notable changes to this project will be documented in this file. + + + +## [Unreleased] - ReleaseDate diff --git a/testing/matrix-sdk-test-macros/Cargo.toml b/testing/matrix-sdk-test-macros/Cargo.toml index efe8c261387..8611bfa85d6 100644 --- a/testing/matrix-sdk-test-macros/Cargo.toml +++ b/testing/matrix-sdk-test-macros/Cargo.toml @@ -24,4 +24,4 @@ syn = { version = "2.0.43", features = ["full", "extra-traits"] } workspace = true [package.metadata.release] -release = false +release = true diff --git a/testing/matrix-sdk-test/CHANGELOG.md b/testing/matrix-sdk-test/CHANGELOG.md new file mode 100644 index 00000000000..989f61effde --- /dev/null +++ b/testing/matrix-sdk-test/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +All notable changes to this project will be documented in this file. + + + +## [Unreleased] - ReleaseDate diff --git a/testing/matrix-sdk-test/Cargo.toml b/testing/matrix-sdk-test/Cargo.toml index 9e80e7c22af..a0b4fd75d38 100644 --- a/testing/matrix-sdk-test/Cargo.toml +++ b/testing/matrix-sdk-test/Cargo.toml @@ -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. @@ -43,4 +43,4 @@ wasm-bindgen-test = "0.3.33" workspace = true [package.metadata.release] -release = false +release = true diff --git a/xtask/src/release.rs b/xtask/src/release.rs index 010dcdceb8c..af5b1f9ddcd 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs @@ -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()); @@ -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()?;