Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2023-10-20 11:17:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-10-20 11:17:37 +0800
Commit
2a932aca86b8a6169543c8b1fe65b4fd3f465f8b
2a932aca
1 parent
fe0c8bfc
Add ccache to CI (#375)
显示空白字符变更
内嵌
并排对比
正在显示
32 个修改的文件
包含
153 行增加
和
53 行删除
.github/workflows/aarch64-linux-gnu.yaml
.github/workflows/android.yaml
.github/workflows/apk.yaml
.github/workflows/arm-linux-gnueabihf.yaml
.github/workflows/build-wheels-aarch64.yaml
.github/workflows/build-wheels-armv7l.yaml
.github/workflows/build-wheels-macos.yaml
.github/workflows/build-wheels-win32.yaml
.github/workflows/build-wheels.yaml
.github/workflows/build-xcframework.yaml
.github/workflows/dot-net.yaml
.github/workflows/export-whisper-to-onnx.yaml
.github/workflows/jni.yaml
.github/workflows/linux-gpu.yaml
.github/workflows/linux.yaml
.github/workflows/macos.yaml
.github/workflows/mfc.yaml
.github/workflows/nightly-wheel-arm.yaml
.github/workflows/pkg-config.yaml
.github/workflows/release-go.yaml
.github/workflows/run-java-test.yaml
.github/workflows/run-python-test.yaml
.github/workflows/style_check.yaml
.github/workflows/test-dot-net.yaml
.github/workflows/test-go-package.yaml
.github/workflows/test-go.yaml
.github/workflows/test-pip-install.yaml
.github/workflows/test-python-offline-websocket-server.yaml
.github/workflows/test-python-online-websocket-server.yaml
.github/workflows/windows-x64-cuda.yaml
.github/workflows/windows-x64.yaml
.github/workflows/windows-x86.yaml
.github/workflows/aarch64-linux-gnu.yaml
查看文件 @
2a932ac
...
...
@@ -47,7 +47,7 @@ jobs:
os
:
[
ubuntu-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
@@ -147,7 +147,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
path
:
sherpa-onnx-*linux-aarch64.tar.bz2
...
...
.github/workflows/android.yaml
查看文件 @
2a932ac
...
...
@@ -49,7 +49,7 @@ jobs:
os
:
[
ubuntu-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
@@ -103,7 +103,7 @@ jobs:
ls -lh
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
name
:
sherpa-onnx-android-libs
path
:
./jniLibs
...
...
.github/workflows/apk.yaml
查看文件 @
2a932ac
...
...
@@ -25,7 +25,7 @@ jobs:
os
:
[
ubuntu-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
Display NDK HOME
...
...
@@ -47,7 +47,7 @@ jobs:
run
:
|
ls -lh ./apks/
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
path
:
./apks/*.apk
...
...
.github/workflows/arm-linux-gnueabihf.yaml
查看文件 @
2a932ac
...
...
@@ -38,7 +38,7 @@ jobs:
os
:
[
ubuntu-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
@@ -140,7 +140,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
path
:
sherpa-onnx-*linux-arm-gnueabihf.tar.bz2
...
...
.github/workflows/build-wheels-aarch64.yaml
查看文件 @
2a932ac
...
...
@@ -25,7 +25,7 @@ jobs:
os
:
[
ubuntu-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v2
...
...
@@ -49,7 +49,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
path
:
./wheelhouse/*.whl
...
...
.github/workflows/build-wheels-armv7l.yaml
查看文件 @
2a932ac
...
...
@@ -26,7 +26,7 @@ jobs:
python-version
:
[
"
3.7"
,
"
3.8"
,
"
3.9"
,
"
3.10"
,
"
3.11"
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v2
...
...
.github/workflows/build-wheels-macos.yaml
查看文件 @
2a932ac
...
...
@@ -25,7 +25,7 @@ jobs:
os
:
[
macos-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
...
...
@@ -47,7 +47,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
path
:
./wheelhouse/*.whl
...
...
.github/workflows/build-wheels-win32.yaml
查看文件 @
2a932ac
...
...
@@ -25,7 +25,7 @@ jobs:
os
:
[
windows-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
...
...
@@ -44,7 +44,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
path
:
./wheelhouse/*.whl
...
...
.github/workflows/build-wheels.yaml
查看文件 @
2a932ac
...
...
@@ -25,7 +25,7 @@ jobs:
os
:
[
ubuntu-latest
,
windows-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
...
...
@@ -61,7 +61,7 @@ jobs:
rm -rf ./wheelhouse
mv ./wheels ./wheelhouse
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
path
:
./wheelhouse/*.whl
...
...
.github/workflows/build-xcframework.yaml
查看文件 @
2a932ac
...
...
@@ -26,7 +26,7 @@ jobs:
os
:
[
macos-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
-
name
:
Build iOS
shell
:
bash
...
...
@@ -57,7 +57,7 @@ jobs:
ls -lh
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
name
:
sherpa-onnx-ios-libs
path
:
./build-ios
...
...
.github/workflows/dot-net.yaml
查看文件 @
2a932ac
...
...
@@ -23,7 +23,7 @@ jobs:
os
:
[
ubuntu-latest
,
windows-latest
,
macos-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
-
name
:
Build wheels
...
...
@@ -42,7 +42,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
unzip -l ./wheelhouse/*.whl
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
name
:
${{ matrix.os }}-wheels
path
:
./wheelhouse/*.whl
...
...
@@ -53,7 +53,7 @@ jobs:
needs
:
build-libs
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
-
name
:
Retrieve artifact from ubuntu-latest
uses
:
actions/download-artifact@v2
...
...
@@ -119,7 +119,7 @@ jobs:
./run.sh
ls -lh packages
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
name
:
upload nuget packages
with
:
name
:
nuget-packages
...
...
.github/workflows/export-whisper-to-onnx.yaml
查看文件 @
2a932ac
...
...
@@ -19,7 +19,7 @@ jobs:
model
:
[
"
tiny.en"
,
"
base.en"
,
"
small.en"
,
"
medium.en"
,
"
tiny"
,
"
base"
,
"
small"
,
"
medium"
,
"
large"
,
"
large-v1"
,
"
large-v2"
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
-
name
:
Install dependencies
shell
:
bash
...
...
.github/workflows/jni.yaml
查看文件 @
2a932ac
...
...
@@ -40,10 +40,15 @@ jobs:
os
:
[
ubuntu-latest
,
macos-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}
-
name
:
Display kotlin version
shell
:
bash
run
:
|
...
...
@@ -58,5 +63,9 @@ jobs:
-
name
:
Run JNI test
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
cd ./kotlin-api-examples
./run.sh
...
...
.github/workflows/linux-gpu.yaml
查看文件 @
2a932ac
...
...
@@ -50,13 +50,22 @@ jobs:
build_type
:
[
Release
,
Debug
]
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-${{ matrix.build_type }}-gpu
-
name
:
Configure CMake
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=./install -DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON ..
...
...
@@ -64,6 +73,8 @@ jobs:
-
name
:
Build sherpa-onnx for ubuntu
shell
:
bash
run
:
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
...
...
.github/workflows/linux.yaml
查看文件 @
2a932ac
...
...
@@ -51,13 +51,22 @@ jobs:
shared_lib
:
[
ON
,
OFF
]
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-${{ matrix.build_type }}-shared-${{ matrix.shared_lib }}
-
name
:
Configure CMake
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -D BUILD_SHARED_LIBS=${{ matrix.shared_lib }} -DCMAKE_INSTALL_PREFIX=./install ..
...
...
@@ -65,6 +74,8 @@ jobs:
-
name
:
Build sherpa-onnx for ubuntu
shell
:
bash
run
:
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
...
...
.github/workflows/macos.yaml
查看文件 @
2a932ac
...
...
@@ -46,13 +46,22 @@ jobs:
build_type
:
[
Release
,
Debug
]
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-${{ matrix.build_type }}
-
name
:
Configure CMake
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_OSX_ARCHITECTURES='arm64;x86_64' -DCMAKE_INSTALL_PREFIX=./install ..
...
...
@@ -60,6 +69,8 @@ jobs:
-
name
:
Build sherpa-onnx for macos
shell
:
bash
run
:
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
...
...
.github/workflows/mfc.yaml
查看文件 @
2a932ac
...
...
@@ -40,7 +40,7 @@ jobs:
arch
:
[
x64
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
@@ -90,13 +90,13 @@ jobs:
ls -lh
-
name
:
Upload artifact
uses
:
actions/upload-artifact@v
2
uses
:
actions/upload-artifact@v
3
with
:
name
:
streaming-speech-recognition-${{ matrix.arch }}
path
:
./mfc-examples/${{ matrix.arch }}/Release/StreamingSpeechRecognition.exe
-
name
:
Upload artifact
uses
:
actions/upload-artifact@v
2
uses
:
actions/upload-artifact@v
3
with
:
name
:
non-streaming-speech-recognition-${{ matrix.arch }}
path
:
./mfc-examples/${{ matrix.arch }}/Release/NonStreamingSpeechRecognition.exe
...
...
.github/workflows/nightly-wheel-arm.yaml
查看文件 @
2a932ac
...
...
@@ -32,7 +32,7 @@ jobs:
python-version
:
[
"
3.7"
,
"
3.8"
,
"
3.9"
,
"
3.10"
,
"
3.11"
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
.github/workflows/pkg-config.yaml
查看文件 @
2a932ac
...
...
@@ -44,13 +44,22 @@ jobs:
lib_type
:
[
shared
,
static
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-${{ matrix.build_type }}-lib-${{ matrix.lib_type }}
-
name
:
Configure CMake
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
if [[ ${{ matrix.lib_type }} == "shared" ]]; then
...
...
@@ -62,6 +71,8 @@ jobs:
-
name
:
Build sherpa-onnx for ${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
shell
:
bash
run
:
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
...
...
.github/workflows/release-go.yaml
查看文件 @
2a932ac
...
...
@@ -31,7 +31,7 @@ jobs:
os
:
[
ubuntu-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
-
name
:
SSH to GitHub
run
:
|
...
...
@@ -58,7 +58,7 @@ jobs:
ls -lh ./wheelhouse/*.whl
unzip -l ./wheelhouse/*.whl
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
name
:
${{ matrix.os }}-wheels-for-go
path
:
./wheelhouse/*.whl
...
...
@@ -73,10 +73,20 @@ jobs:
arch
:
[
x86_64
,
arm64
]
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v4
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-${{ matrix.arch }}
-
name
:
Configure CMake
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -D BUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} -DCMAKE_INSTALL_PREFIX=./install ..
...
...
@@ -84,6 +94,8 @@ jobs:
-
name
:
Build sherpa-onnx for macOS ${{ matrix.arch }}
shell
:
bash
run
:
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd build
make -j2
make install
...
...
@@ -93,7 +105,7 @@ jobs:
file install/lib/lib*
-
uses
:
actions/upload-artifact@v
2
-
uses
:
actions/upload-artifact@v
3
with
:
name
:
${{ matrix.os }}-for-${{ matrix.arch }}
path
:
./build/install/lib/
...
...
@@ -107,7 +119,7 @@ jobs:
os
:
[
windows-latest
]
arch
:
[
x64
,
Win32
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
@@ -131,7 +143,7 @@ jobs:
ls -lh install/bin
-
name
:
Upload artifact
uses
:
actions/upload-artifact@v
2
uses
:
actions/upload-artifact@v
3
with
:
name
:
sherpa-onnx-go-windows-${{ matrix.arch }}
path
:
./build/install/lib/
...
...
@@ -142,7 +154,7 @@ jobs:
needs
:
[
linux-x86_64_wheel
,
macOS
,
windows
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
-
name
:
Add SSH key
run
:
|
...
...
.github/workflows/run-java-test.yaml
查看文件 @
2a932ac
...
...
@@ -39,10 +39,15 @@ jobs:
os
:
[
ubuntu-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}
-
name
:
Display java version
shell
:
bash
run
:
|
...
...
@@ -52,5 +57,9 @@ jobs:
-
name
:
Run java test
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
cd ./java-api-examples
./runtest.sh
...
...
.github/workflows/run-python-test.yaml
查看文件 @
2a932ac
...
...
@@ -43,10 +43,15 @@ jobs:
python-version
:
"
3.10"
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-python-${{ matrix.python-version }}
-
name
:
Setup Python
uses
:
actions/setup-python@v2
with
:
...
...
@@ -60,6 +65,10 @@ jobs:
-
name
:
Install sherpa-onnx
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
python3 -m pip install --verbose .
-
name
:
Test sherpa-onnx
...
...
.github/workflows/style_check.yaml
查看文件 @
2a932ac
...
...
@@ -44,7 +44,7 @@ jobs:
fail-fast
:
false
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
.github/workflows/test-dot-net.yaml
查看文件 @
2a932ac
...
...
@@ -42,7 +42,7 @@ jobs:
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
.github/workflows/test-go-package.yaml
查看文件 @
2a932ac
...
...
@@ -34,7 +34,7 @@ jobs:
arch
:
x86
# use 386 for GOARCH
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
uses
:
actions/setup-go@v4
...
...
.github/workflows/test-go.yaml
查看文件 @
2a932ac
...
...
@@ -26,7 +26,7 @@ jobs:
arch
:
amd64
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
.github/workflows/test-pip-install.yaml
查看文件 @
2a932ac
...
...
@@ -35,7 +35,7 @@ jobs:
python-version
:
"
3.7"
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
.github/workflows/test-python-offline-websocket-server.yaml
查看文件 @
2a932ac
...
...
@@ -28,10 +28,15 @@ jobs:
model_type
:
[
"
transducer"
,
"
paraformer"
,
"
nemo_ctc"
,
"
whisper"
,
"
tdnn"
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-python-${{ matrix.python-version }}
-
name
:
Setup Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
with
:
...
...
@@ -45,10 +50,13 @@ jobs:
-
name
:
Install sherpa-onnx
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
python3 -m pip install --no-deps --verbose .
python3 -m pip install websockets
-
name
:
Start server for transducer models
if
:
matrix.model_type == 'transducer'
shell
:
bash
...
...
.github/workflows/test-python-online-websocket-server.yaml
查看文件 @
2a932ac
...
...
@@ -28,10 +28,15 @@ jobs:
model_type
:
[
"
transducer"
,
"
paraformer"
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-python-${{ matrix.python-version }}
-
name
:
Setup Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v2
with
:
...
...
@@ -45,6 +50,10 @@ jobs:
-
name
:
Install sherpa-onnx
shell
:
bash
run
:
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
python3 -m pip install --no-deps --verbose .
python3 -m pip install websockets
...
...
.github/workflows/windows-x64-cuda.yaml
查看文件 @
2a932ac
...
...
@@ -46,7 +46,7 @@ jobs:
os
:
[
windows-latest
]
steps
:
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
.github/workflows/windows-x64.yaml
查看文件 @
2a932ac
...
...
@@ -47,7 +47,7 @@ jobs:
shared_lib
:
[
ON
,
OFF
]
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
.github/workflows/windows-x86.yaml
查看文件 @
2a932ac
...
...
@@ -47,7 +47,7 @@ jobs:
shared_lib
:
[
ON
,
OFF
]
steps
:
-
uses
:
actions/checkout@v
3
-
uses
:
actions/checkout@v
4
with
:
fetch-depth
:
0
...
...
请
注册
或
登录
后发表评论