File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 - uses : dtolnay/rust-toolchain@1.85.0
5353 - uses : Swatinem/rust-cache@v2
5454 - run : cargo check --workspace
55+
56+ publish-check :
57+ name : cargo package workspace
58+ runs-on : ubuntu-latest
59+ steps :
60+ - uses : actions/checkout@v6
61+ - uses : dtolnay/rust-toolchain@stable
62+ - uses : Swatinem/rust-cache@v2
63+ # `cargo package --workspace` packs every member into target/package/ in
64+ # topological order and verifies each one against a tmp-registry built
65+ # from the sibling tarballs. This catches:
66+ # * `include_str!`/asset paths that escape the crate root
67+ # * Cargo.toml manifest issues (missing license/description, oversized
68+ # tarball, files outside [package].include, etc.)
69+ # * cross-crate API mismatches (verify-compile sees the new sibling
70+ # version locally instead of falling back to the published one)
71+ # This is the same verification step release-plz runs at publish time;
72+ # running it on every PR catches publish-only failures before merge.
73+ - run : cargo package --workspace
File renamed without changes.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ mod manpage;
1515const LONG_VERSION : & str = concat ! (
1616 env!( "CARGO_PKG_VERSION" ) ,
1717 "\n \n " ,
18- include_str!( "../../docs/ ascii_art.txt" ) ,
18+ include_str!( "ascii_art.txt" ) ,
1919) ;
2020
2121#[ derive( Parser ) ]
You can’t perform that action at this time.
0 commit comments