Release pipeline for v0.1.0#24
Merged
Merged
Conversation
Add a GitHub Actions release workflow that builds release artifacts on macOS and Linux (matrix), uploads platform-specific tarballs, and creates a GitHub release for pushed v* tags. Introduce scripts/package_release.sh to configure/build in a distribution mode, stage binaries/libs, fix rpaths (macOS/Linux), verify no leaked host paths, and produce dist/parakeet-<version>-<os>-<arch>.tar.gz. Update .gitignore to exclude build-release/ and dist/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release pipeline for v0.1.0
Closes #21 (the prebuilt-binaries + Xcode/CLT-doc parts).
What this adds
scripts/package_release.sh— local-first packaging script. Configures withAXIOM_DIST_BUILD=ON(which statically links libomp/libgomp/OpenBLAS into libaxiom), builds, stages abin/+lib/+include/tree, fixes rpaths (install_name_toolon macOS,patchelfon Linux), and refuses to ship ifotool -L/lddshows a host-path leak. Designed to be runnable on a developer machine so packaging changes can be validated before pushing tags..github/workflows/release.yml— matrix workflow (macos-14 / macos-13 / ubuntu-22.04). Each job calls the script. A final job creates the GitHub release and attaches all three tarballs. Triggers onv*tag push, plusworkflow_dispatchfor manual test runs (no release created on dispatch).xattr -dr com.apple.quarantinerecipe; "Build from source" gains the one-line note that macOS source builds need full Xcode (not just CLT) because ofxcrun metal/xcrun metallib. That covers ask (3) from the issue..gitignore— addsbuild-release/anddist/(script outputs, never committed).Tarball layout
Runtime deps after dist build:
The Metal
.metallibis embedded intolibaxiom.dylibvia axiom's existingAXIOM_EMBED_METAL_LIBRARY=ON. Runtime usesnewLibraryWithData:, which is part of the macOS Metal framework — no Xcode or CLT required on the user side.What was validated locally (macos-arm64)
/tmprunsbin/parakeet --help(exit 0).otool -Lshows no/opt/homebrewpaths and no repo-absolute paths;@rpath/libaxiom.0.dylibresolves via the bundled lib.--gpuproduced the expected transcript ("Well, I don't wish to see it any more, observed Phoebe..."), encoder ran in 11ms — embedded.metallibworked throughnewLibraryWithData:from the relocated tarball.