You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa5aeef
Browse filesBrowse the repository at this point in the historyBrowse files
authored
ci(release): ship the C-API shared library and header (#25) (#29)
The release bundles only carried parakeet-cli, so integrating via
ctypes/dlopen meant compiling from source. Add a separate shared-library
bundle per (platform, backend, arch) alongside each CLI bundle.
The lib is built in its own build dir with PARAKEET_SHARED=ON and
PARAKEET_BUILD_CLI=OFF, so the CLI bundles stay single self-contained
binaries. Each lib bundle carries libparakeet.{so,dylib,dll}, the
parakeet_capi.h header, LICENSE and README (plus the same cudart/cublas
on CUDA). The release job already globs dist/*, so they attach with no
further change.
Two things that would have silently broken it:
- BUILD_SHARED_LIBS=OFF builds ggml's static objects without -fPIC, so
folding them into a shared lib fails to link on Linux. The shared-lib
configure steps set CMAKE_POSITION_INDEPENDENT_CODE=ON.
- The C-API header marks symbols with plain extern "C", no dllexport, so
an MSVC DLL would export nothing. Set WINDOWS_EXPORT_ALL_SYMBOLS on the
parakeet target when PARAKEET_SHARED is on. No effect on Linux/macOS.
Verified on Linux CPU: a self-contained libparakeet.so depending only on
standard system libs, with the parakeet_capi_* symbols exported.
Co-authored-by: Ettore Di Giacinto <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
0 commit comments