Build sherpa-onnx as a single shared library (#1078)
When `-D BUILD_SHARED_LIBS=ON` is passed to `cmake`, it builds a single shared library. Specifically, - For C APIs, it builds `libsherpa-onnx-c-api.so` - For Python APIs, it builds `_sherpa_onnx.cpython-xx-xx.so` - For Kotlin and Java APIs, it builds `libsherpa-onnx-jni.so` There is no `libsherpa-onnx-core.so` any longer. Note it affects only shared libraries.
This commit is contained in:
10
.github/workflows/test-build-wheel.yaml
vendored
10
.github/workflows/test-build-wheel.yaml
vendored
@@ -110,10 +110,20 @@ jobs:
|
||||
python3 setup.py bdist_wheel
|
||||
ls -lh dist
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wheel-${{ matrix.os }}-${{ matrix.python-version }}
|
||||
path: ./dist/*.whl
|
||||
|
||||
- name: Display wheel
|
||||
shell: bash
|
||||
run: |
|
||||
ls -lh dist
|
||||
cd dist
|
||||
|
||||
mkdir t
|
||||
cd t
|
||||
unzip ../*.whl
|
||||
|
||||
- name: Install wheel
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user