mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-26 20:00:27 +00:00
fix: write instructions only for publishing crates
This commit is contained in:
parent
5cab79d817
commit
b00496fd29
@ -396,7 +396,9 @@ fn main() -> Result<()> {
|
||||
while let Some(node) = bfs.next(&rgraph) {
|
||||
let weight = rgraph.node_weight(node).unwrap();
|
||||
let c = ctx.crates.get(weight).unwrap();
|
||||
println!("git tag {}-v{}", weight, c.version);
|
||||
if c.publish {
|
||||
println!("git tag {}-v{}", weight, c.version);
|
||||
}
|
||||
}
|
||||
|
||||
println!("");
|
||||
@ -414,8 +416,10 @@ fn main() -> Result<()> {
|
||||
];
|
||||
|
||||
let config = c.configs.first().unwrap(); // TODO
|
||||
args.push("--features".into());
|
||||
args.push(config.features.join(","));
|
||||
if !config.features.is_empty() {
|
||||
args.push("--features".into());
|
||||
args.push(config.features.join(","));
|
||||
}
|
||||
|
||||
if let Some(target) = &config.target {
|
||||
args.push("--target".into());
|
||||
@ -428,7 +432,9 @@ fn main() -> Result<()> {
|
||||
|
||||
println!("cargo {}", dry_run.join(" "));
|
||||
*/
|
||||
println!("cargo {}", args.join(" "));
|
||||
if c.publish {
|
||||
println!("cargo {}", args.join(" "));
|
||||
}
|
||||
}
|
||||
|
||||
println!("");
|
||||
|
@ -1,9 +1,9 @@
|
||||
use std::collections::HashSet;
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
use std::{env, fs};
|
||||
|
||||
use anyhow::anyhow;
|
||||
use cargo_semver_checks::{Check, GlobalConfig, ReleaseType, RequiredSemverUpdate, Rustdoc};
|
||||
use cargo_semver_checks::{Check, GlobalConfig, ReleaseType, Rustdoc};
|
||||
use flate2::read::GzDecoder;
|
||||
use tar::Archive;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user