Fix building (#1343)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: c-api-test-loading-tokens-hotwords-from-memory
|
||||
name: c-api-from-memory
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -7,7 +7,7 @@ on:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+*'
|
||||
paths:
|
||||
- '.github/workflows/c-api.yaml'
|
||||
- '.github/workflows/c-api-from-buffer.yaml'
|
||||
- 'CMakeLists.txt'
|
||||
- 'cmake/**'
|
||||
- 'sherpa-onnx/csrc/*'
|
||||
@@ -18,7 +18,7 @@ on:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/c-api.yaml'
|
||||
- '.github/workflows/c-api-from-buffer.yaml'
|
||||
- 'CMakeLists.txt'
|
||||
- 'cmake/**'
|
||||
- 'sherpa-onnx/csrc/*'
|
||||
@@ -29,11 +29,11 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: c-api-${{ github.ref }}
|
||||
group: c-api-from-buffer-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
c_api:
|
||||
c_api_from_buffer:
|
||||
name: ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
@@ -106,8 +106,9 @@ jobs:
|
||||
curl -SL -O https://huggingface.co/desh2608/icefall-asr-librispeech-pruned-transducer-stateless7-streaming-small/blob/main/data/lang_bpe_500/bpe.model
|
||||
cp bpe.model sherpa-onnx-streaming-zipformer-en-20M-2023-02-17/
|
||||
rm bpe.model
|
||||
|
||||
|
||||
printf "▁A ▁T ▁P :1.5\n▁A ▁B ▁C :3.0" > hotwords.txt
|
||||
mv hotwords.txt ./sherpa-onnx-streaming-zipformer-en-20M-2023-02-17
|
||||
|
||||
ls -lh sherpa-onnx-streaming-zipformer-en-20M-2023-02-17
|
||||
echo "---"
|
||||
@@ -115,7 +116,7 @@ jobs:
|
||||
|
||||
export LD_LIBRARY_PATH=$PWD/build/install/lib:$LD_LIBRARY_PATH
|
||||
export DYLD_LIBRARY_PATH=$PWD/build/install/lib:$DYLD_LIBRARY_PATH
|
||||
|
||||
|
||||
./streaming-zipformer-buffered-tokens-hotwords-c-api
|
||||
|
||||
|
||||
rm -rf sherpa-onnx-streaming-zipformer-*
|
||||
Reference in New Issue
Block a user