Fix jni test (#382)

This commit is contained in:
Fangjun Kuang
2023-10-23 15:27:18 +08:00
committed by GitHub
parent 0fdb2044e1
commit e7432cd042
2 changed files with 7 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ concurrency:
cancel-in-progress: true
jobs:
linux:
pkg_config:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
strategy:

View File

@@ -11,7 +11,7 @@ cd ..
mkdir -p build
cd build
if [ ! -f ../build/lib/libsherpa-onnx-jni.dylib ]; then
if [[ ! -f ../build/lib/libsherpa-onnx-jni.dylib && ! -f ../build/lib/libsherpa-onnx-jni.so ]]; then
cmake \
-DSHERPA_ONNX_ENABLE_PYTHON=OFF \
-DSHERPA_ONNX_ENABLE_TESTS=OFF \
@@ -34,6 +34,11 @@ if [ ! -f ./sherpa-onnx-streaming-zipformer-en-2023-02-21/tokens.txt ]; then
git clone https://huggingface.co/csukuangfj/sherpa-onnx-streaming-zipformer-en-2023-02-21
fi
if [ ! -f ./vits-zh-aishell3/tokens.txt ]; then
git lfs install
git clone https://huggingface.co/csukuangfj/vits-zh-aishell3
fi
kotlinc-jvm -include-runtime -d main.jar Main.kt WaveReader.kt SherpaOnnx.kt faked-asset-manager.kt Tts.kt
ls -lh main.jar