Fix jni test (#382)
This commit is contained in:
2
.github/workflows/pkg-config.yaml
vendored
2
.github/workflows/pkg-config.yaml
vendored
@@ -33,7 +33,7 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
pkg_config:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
|
name: ${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ cd ..
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd 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 \
|
cmake \
|
||||||
-DSHERPA_ONNX_ENABLE_PYTHON=OFF \
|
-DSHERPA_ONNX_ENABLE_PYTHON=OFF \
|
||||||
-DSHERPA_ONNX_ENABLE_TESTS=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
|
git clone https://huggingface.co/csukuangfj/sherpa-onnx-streaming-zipformer-en-2023-02-21
|
||||||
fi
|
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
|
kotlinc-jvm -include-runtime -d main.jar Main.kt WaveReader.kt SherpaOnnx.kt faked-asset-manager.kt Tts.kt
|
||||||
|
|
||||||
ls -lh main.jar
|
ls -lh main.jar
|
||||||
|
|||||||
Reference in New Issue
Block a user