Skip to content

Commit 0b8bc1e

Browse files
authored
fix(peeroxide-cli): move ascii_art.txt inside crate so cargo package can find it (#21)
1 parent 5b11637 commit 0b8bc1e

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,22 @@ jobs:
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

peeroxide-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mod manpage;
1515
const 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)]

0 commit comments

Comments
 (0)