Skip to content

Commit

Permalink
Fix jni test (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Oct 23, 2023
1 parent 0fdb204 commit e7432cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pkg-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion kotlin-api-examples/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit e7432cd

Please sign in to comment.