ci: add release workflow to publish prebuilt SDK binaries - #628
Open
chinaux wants to merge 14 commits into
Open
Conversation
chinaux
force-pushed
the
feat/release-prebuilt
branch
from
August 11, 2026 03:17
49580a5 to
a53a9d0
Compare
- release.yml: triggered by v* tag push or manual dispatch, creates GitHub Release via softprops/action-gh-release - _build_prebuilt.yml: reusable workflow building zvec SDK (include/ + lib/, shared libs only) for osx-arm64, linux-amd64, linux-arm64 and windows-amd64 with DuckDB-style asset naming
…lock When called via workflow_call, github.workflow resolves to the caller's name, making the reusable workflow compete with the caller for the same concurrency group and deadlocking the run. Concurrency is controlled by the caller (release.yml).
lz4's Makefile.inc defines 'INSTALL_DIR ?= install -d -m 755' as a command, which gets overridden by our INSTALL_DIR environment variable, breaking 'make install' on all Unix platforms. Prefix our env vars with ZVEC_.
chinaux
force-pushed
the
feat/release-prebuilt
branch
from
August 12, 2026 03:10
a53a9d0 to
2b45a34
Compare
zhourrr
requested changes
Aug 12, 2026
| arch: arm64 | ||
| ext: tar.gz | ||
| - target: x86_64-unknown-linux-gnu | ||
| os: ubuntu-24.04 |
Collaborator
There was a problem hiding this comment.
貌似没有指定 glibc 版本?会使用 ubuntu 24.04 glibc 2.38
Linux prebuilt .so files were linked against glibc 2.38 (ubuntu-24.04), making them incompatible with older distros. Run the Linux build jobs inside manylinux_2_28 containers (glibc 2.28) to match the Python wheel build's compatibility — see [tool.cibuildwheel.linux] in pyproject.toml. - Add per-matrix 'container' field; macOS/Windows use '' (no container) - Skip actions/setup-python on Linux (container provides python3+pip) - Change 'python' to 'python3' in Unix install step for container compat Android and iOS jobs are unchanged (cross-compiled, no host glibc dep).
The manylinux_2_28 container's system Python (/usr/bin/python3) does not have pip installed. Use the manylinux-bundled CPython at /opt/python/cp311/bin/ instead, which includes pip. Fall back to python3 from actions/setup-python on non-Linux platforms.
The manylinux_2_28 image does not have /opt/python/cp311/bin (the previous fallback path). Use actions/setup-python on all platforms including inside the Linux container — it installs Python 3.11 with pip into the tool cache which is mounted into the container. Also remove pip caching to avoid container cache path issues.
actions/setup-python downloads a CPython built for glibc 2.34+, which cannot run inside the manylinux_2_28 container (glibc 2.28). Use the manylinux-bundled CPython at /opt/python/cp3*/bin/ instead, which has pip and is compatible with the container's glibc. - Skip actions/setup-python on Linux (glibc incompatibility) - Glob /opt/python/cp3*/bin to find any bundled CPython version - Add to GITHUB_PATH so cmake/ninja are available in later steps - Fall back to python3 from setup-python on macOS
The shell uses 'bash -e -o pipefail'. On macOS, the glob /opt/python/cp3*/bin doesn't match, causing 'ls' to fail and pipefail to propagate the non-zero exit, triggering set -e and killing the script before reaching pip install. Add '|| true' to the command substitution to prevent this.
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.
Summary
This PR adds a GitHub Release pipeline that publishes prebuilt C++/C SDK binaries, so users can consume zvec directly without building from source.
What's included
New workflows
.github/workflows/release.yml— the release entry point:v*tag, or manually viaworkflow_dispatchwith a tag inputauto-generated notes via
softprops/action-gh-releasealpha/beta/rcare automatically marked as prerelease.github/workflows/_build_prebuilt.yml— reusable build workflow(
workflow_call+workflow_dispatch), building the SDK on 4 platforms in parallelRelease assets
zvec-sdk-linux-amd64.tar.gzubuntu-24.04zvec-sdk-linux-arm64.tar.gzubuntu-24.04-armzvec-sdk-osx-arm64.tar.gzmacos-15zvec-sdk-windows-amd64.zipwindows-2025