Architecture

Release & Publish CI

windowsunixmissingcompletepush tag Aphrodite/v* OR workflow_dispatchRelease job (environment: Release)softprops/action-gh-release - create release ONCE(before any attach)Build matrix (needs: Release; fail-fast: false)x86_64-unknown-linux-gnu (ubuntu)aarch64-apple-darwin (macos)x86_64-apple-darwin (macos, cross from arm64)x86_64-pc-windows-msvc (windows - LONG POLE)cargo build --release -p aphrodite -paphrodite-hermes --target Tstage artifacts: aphrodite-T(.exe) +libaphrodite_hermes-T(.dylib/.so/.dll)checksumspwsh Get-FileHash (bash findstr mangles /v flag)shasum -a 256upload-artifact + action-gh-release attach(fail_on_unmatched_files: true)Finalize job (needs: Build, tags only)gh release view - assert all 4 targets × 3 files= 12 assets::error:: exit 1 - do NOT publish notes forincomplete matrixAll 4 platforms present (Windows included)
BUILD.YML - TAG PUSH → RELEASE + 4-TARGET MATRIX
publishednot publishednoyesyesnoyesnopush tag Aphrodite/v* OR workflow_dispatchTest jobcargo test -p aphrodite -p aphrodite-hermes--releasepackaging guard: cargo package --list mustcontainall 6 builtin_directives/*.md- a recursive *.md exclude once stripped themPublish-Headroom-Core (needs: Test)version already on crates.io? (check runs on tagAND dispatch)skip - crates.io versions immutableworkflow_dispatch && publish_crates?skip - headroom-core is DISPATCH-ONLYcargo publish -p aphrodite-headroom-core--no-verifyPublish-Aphrodite (needs: Test + Headroom-Core)tag push OR (dispatch && publish_crates)?cargo publish -p aphrodite --no-verifybuild onlyPublish-Hermes (needs: Publish-Aphrodite)tag push OR (dispatch && publish_crates)?cargo publish -p aphrodite-hermes --no-verifybuild only
PUBLISH.YML - TEST + PACKAGING GUARD → CRATES.IO CHAIN
IN THIS DOCUMENT

Crimson marks the heading currently in view; every entry is one of the document's own headings.

Two GitHub Actions workflows fire on an Aphrodite/v* tag push.

Build.yml creates the GitHub release once, runs a 4-target build matrix that attaches per-platform assets, and a Finalize job that fails loudly if the matrix came out incomplete (12 assets: 4 targets x binary + dylib + SHA256SUMS).

Publish.yml runs tests plus a packaging guard, then a 3-stage crates.io chain: on a plain tag push the aphrodite and aphrodite-hermes publish steps do fire, while aphrodite-headroom-core (the vendored dependency published under our own namespace) publishes only via explicit workflow_dispatch with publish_crates=true.

Build.yml - tag push → release + 4-target matrix

windowsunixmissingcompletepush tag Aphrodite/v* OR workflow_dispatchRelease job (environment: Release)softprops/action-gh-release - create release ONCE(before any attach)Build matrix (needs: Release; fail-fast: false)x86_64-unknown-linux-gnu (ubuntu)aarch64-apple-darwin (macos)x86_64-apple-darwin (macos, cross from arm64)x86_64-pc-windows-msvc (windows - LONG POLE)cargo build --release -p aphrodite -paphrodite-hermes --target Tstage artifacts: aphrodite-T(.exe) +libaphrodite_hermes-T(.dylib/.so/.dll)checksumspwsh Get-FileHash (bash findstr mangles /v flag)shasum -a 256upload-artifact + action-gh-release attach(fail_on_unmatched_files: true)Finalize job (needs: Build, tags only)gh release view - assert all 4 targets × 3 files= 12 assets::error:: exit 1 - do NOT publish notes forincomplete matrixAll 4 platforms present (Windows included)
BUILD.YML - TAG PUSH → RELEASE + 4-TARGET MATRIX

Publish.yml - test + packaging guard → crates.io chain

publishednot publishednoyesyesnoyesnopush tag Aphrodite/v* OR workflow_dispatchTest jobcargo test -p aphrodite -p aphrodite-hermes--releasepackaging guard: cargo package --list mustcontainall 6 builtin_directives/*.md- a recursive *.md exclude once stripped themPublish-Headroom-Core (needs: Test)version already on crates.io? (check runs on tagAND dispatch)skip - crates.io versions immutableworkflow_dispatch && publish_crates?skip - headroom-core is DISPATCH-ONLYcargo publish -p aphrodite-headroom-core--no-verifyPublish-Aphrodite (needs: Test + Headroom-Core)tag push OR (dispatch && publish_crates)?cargo publish -p aphrodite --no-verifybuild onlyPublish-Hermes (needs: Publish-Aphrodite)tag push OR (dispatch && publish_crates)?cargo publish -p aphrodite-hermes --no-verifybuild only
PUBLISH.YML - TEST + PACKAGING GUARD → CRATES.IO CHAIN

Ordering rationale: aphrodite path-depends on the vendored headroom-core (published under the alias aphrodite-headroom-core); cargo publish strips the path key, so a matching aphrodite-headroom-core version must already exist on crates.io - hence the strict Headroom-Core → Aphrodite → Hermes chain.

The tag-push publish condition on aphrodite/aphrodite-hermes means a release tag genuinely publishes the two main crates; only the vendored aphrodite-headroom-core publish step is truly dispatch-only, and its version-check step still runs on tag push so the chain is never blocked.