repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Build prototypes from inside the tree so the lint exemption applies

cb9e565264c21fe92035ada7e7a458bb0e76b957

Claude <noreply@anthropic.com> ·

SSH signature · not checked

Browse filesCompare with HEAD

The first real run failed identically on all three OS runners: the cross bin
tripped `-D missing_docs`. The prototype cap-lints=warn exemption
(prototypes/.cargo/config.toml, §18) is resolved by working directory, not by
--manifest-path — a prototype compiled from the repo root inherits the
production zero-warnings policy and fails. Confirmed locally: the same crate
errors via `--manifest-path` from root but only warns when built with its CWD
under prototypes/.

So every cargo compile now runs from inside the prototype tree, matching how
p02–p28 are verified locally, and a concurrency group cancels superseded runs.
Surface: ci-prototype.yml working-directory on three jobs.

Changed files (1)

+22 / −6 text lines

Diff layout

.github/workflows/ci-prototype.yml

Modified

+22 / −6 text lines

22# arch-gate, and §13.1 cold-build sub-budget. Not the production pipeline:
33# it targets the prototype crates because no production crate exists yet.
44# Delete once its PLAN.md result block is recorded.
5#
6# Note: every cargo *compile* runs with its CWD under prototypes/, because the
7# prototype cap-lints=warn exemption (prototypes/.cargo/config.toml, §18) is
8# resolved by working directory, not by --manifest-path. Building a prototype
9# from the repo root picks up the root's -D warnings / -D missing_docs policy
10# and fails.
511name: ci-prototype
713on:
1521permissions:
1622 contents: read
24concurrency:
25 group: ci-prototype-${{ github.ref }}
26 cancel-in-progress: true
1828jobs:
1929 # §13.1 cold-build sub-budget + §17.10 hermeticity: build and test every
2030 # prototype crate on a clean runner, record per-crate wall-clock.
3444 name=$(basename "$d")
3545 [ -f "$d/Cargo.toml" ] || continue
3646 start=$SECONDS
37 if cargo test --manifest-path "$d/Cargo.toml" --quiet >/dev/null 2>&1; then
47 if ( cd "$d" && cargo test --quiet ) >/dev/null 2>&1; then
3848 status="ok"
3949 else
4050 status="FAIL"
4858 # §14 cross-build (un-gates P30): does the heavy native tree cross-compile?
4959 cross-build:
5060 runs-on: ubuntu-latest
61 defaults:
62 run:
63 working-directory: prototypes/p34-ci-pipeline/cross
5164 steps:
5265 - uses: actions/checkout@v4
5366 - name: toolchain + targets
6174 - name: cross x86_64-unknown-linux-musl
6275 id: musl_x64
6376 continue-on-error: true
64 run: cargo zigbuild --target x86_64-unknown-linux-musl --manifest-path prototypes/p34-ci-pipeline/cross/Cargo.toml
77 run: cargo zigbuild --target x86_64-unknown-linux-musl
6578 - name: cross aarch64-unknown-linux-musl
6679 id: musl_arm
6780 continue-on-error: true
68 run: cargo zigbuild --target aarch64-unknown-linux-musl --manifest-path prototypes/p34-ci-pipeline/cross/Cargo.toml
81 run: cargo zigbuild --target aarch64-unknown-linux-musl
6982 - name: cross x86_64-pc-windows-gnu
7083 id: win_gnu
7184 continue-on-error: true
72 run: cargo zigbuild --target x86_64-pc-windows-gnu --manifest-path prototypes/p34-ci-pipeline/cross/Cargo.toml
85 run: cargo zigbuild --target x86_64-pc-windows-gnu
7386 - name: per-target summary
7487 run: |
7588 echo "## §14 cross-build (mlua vendored + gix)" >> "$GITHUB_STEP_SUMMARY"
87100 matrix:
88101 os: [ubuntu-latest, macos-latest, windows-latest]
89102 runs-on: ${{ matrix.os }}
103 defaults:
104 run:
105 working-directory: prototypes/p34-ci-pipeline/cross
90106 steps:
91107 - uses: actions/checkout@v4
92108 - run: rustup default stable
93109 - name: build + run cross bin natively
94 run: cargo run --manifest-path prototypes/p34-ci-pipeline/cross/Cargo.toml
110 run: cargo run
96112 # §11 arch-gate (un-gates P32): the stable-metadata gate is the hard
97113 # assertion; cargo-pup is attempted best-effort as the nightly source gate.
123139 cargo +nightly-2026-01-22 pup || cargo pup
124140 - name: pup outcome
125141 run: |
126 echo "cargo-pup probe outcome = ${{ steps.pup.outcome }}" >> "$GITHUB_STEP_SUMMARY"
142 echo "cargo-pup probe outcome = ${{ steps.pup.outcome }}" >> "$GITHUB_STEP_SUMMARY"No final newline