Skip to main content

path_deps/
path_deps.rs

1//! Generate a workflow for a crate with sibling path-deps — the
2//! pattern the dev-* suite uses for its own CI (each crate clones
3//! its siblings into `..` before running cargo).
4//!
5//! ```text
6//! cargo run --example path_deps
7//! ```
8
9use dev_ci::{Generator, PathDep, Target};
10
11fn main() {
12    let yaml = Generator::new()
13        .target(Target::GitHubActions)
14        .matrix_os(["ubuntu-latest", "macos-latest", "windows-latest"])
15        .with_path_dep(PathDep::new(
16            "dev-report",
17            "https://github.com/jamesgober/dev-report.git",
18        ))
19        .with_path_dep(PathDep::new(
20            "dev-tools",
21            "https://github.com/jamesgober/dev-tools.git",
22        ))
23        .with_clippy()
24        .with_fmt()
25        .with_docs()
26        .with_msrv("1.85")
27        .generate();
28
29    println!("{yaml}");
30}