Skip to content

Commit 0d4bc65

Browse files
committed
chore: Enable releases for the test crates
1 parent 5e1bae0 commit 0d4bc65

File tree

6 files changed

+25
-7
lines changed

6 files changed

+25
-7
lines changed

bindings/matrix-sdk-ffi-macros/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ readme = "README.md"
99
repository = "https://github.com/matrix-org/matrix-rust-sdk"
1010
rust-version = { workspace = true }
1111
version = "0.7.0"
12+
publish = false
1213

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

2324
[lints]
2425
workspace = true
26+
27+
[package.metadata.release]
28+
release = false
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
<!-- next-header -->
6+
7+
## [Unreleased] - ReleaseDate

testing/matrix-sdk-test-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ syn = { version = "2.0.43", features = ["full", "extra-traits"] }
2424
workspace = true
2525

2626
[package.metadata.release]
27-
release = false
27+
release = true

testing/matrix-sdk-test/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
<!-- next-header -->
6+
7+
## [Unreleased] - ReleaseDate

testing/matrix-sdk-test/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ doctest = false
1919
as_variant = { workspace = true }
2020
http = { workspace = true }
2121
insta = { workspace = true }
22-
matrix-sdk-common = { path = "../../crates/matrix-sdk-common" }
22+
matrix-sdk-common = { version = "0.9.0", path = "../../crates/matrix-sdk-common" }
2323
matrix-sdk-test-macros = { version = "0.7.0", path = "../matrix-sdk-test-macros" }
2424
once_cell = { workspace = true }
2525
# Enable the unstable feature for polls support.
@@ -43,4 +43,4 @@ wasm-bindgen-test = "0.3.33"
4343
workspace = true
4444

4545
[package.metadata.release]
46-
release = false
46+
release = true

xtask/src/release.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn check_prerequisites() {
9090

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

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

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

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

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

0 commit comments

Comments
 (0)