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
2025-02-25 15:22:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-02-25 15:22:50 +0800
Commit
dc2f7e9f9b2b49e2a73fb30360d7eb6dc6a7be4c
dc2f7e9f
1 parent
70742b69
Fix publishing linux pre-built artifacts (#1919)
显示空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
62 行增加
和
48 行删除
.github/workflows/linux.yaml
.github/workflows/test-build-wheel.yaml
.github/workflows/test-pip-install.yaml
.github/workflows/windows-x64.yaml
.github/workflows/linux.yaml
查看文件 @
dc2f7e9
...
...
@@ -142,11 +142,66 @@ jobs:
ls -lh build/bin/sherpa-onnx
readelf -d build/bin/sherpa-onnx
rm -fv build/install/include/cargs.h
rm -fv build/install/lib/cargs.h
rm -fv build/install/lib/libcargs.so
rm -rfv build/install/lib/pkgconfig
-
uses
:
actions/upload-artifact@v4
with
:
name
:
release-${{ matrix.build_type }}-with-shared-lib-${{ matrix.shared_lib }}-with-tts-${{ matrix.with_tts }}
path
:
install/*
-
name
:
Copy files
shell
:
bash
if
:
matrix.build_type == 'Release'
run
:
|
du -h -d1 .
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
if [[ ${{ matrix.shared_lib }} == 'ON' ]]; then
suffix=shared
else
suffix=static
fi
if [[ ${{ matrix.with_tts }} == ON ]]; then
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-linux-x64-$suffix
else
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-linux-x64-$suffix-no-tts
fi
mkdir $dst
cp -a build/install/bin $dst/
if [[ ${{ matrix.shared_lib }} == ON ]]; then
cp -av build/install/lib $dst/
fi
cp -a build/install/include $dst/
tree $dst
tar cjvf ${dst}.tar.bz2 $dst
du -h -d1 .
-
name
:
Release pre-compiled binaries and libs for linux x64
if
:
github.repository_owner == 'csukuangfj' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') && matrix.build_type == 'Release'
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
overwrite
:
true
file
:
sherpa-onnx-*.tar.bz2
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.10.45
-
name
:
Release pre-compiled binaries and libs for linux x64
if
:
github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/') && matrix.build_type == 'Release'
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
overwrite
:
true
file
:
sherpa-onnx-*.tar.bz2
-
name
:
Test offline TTS
if
:
matrix.with_tts == 'ON'
shell
:
bash
...
...
@@ -324,8 +379,6 @@ jobs:
.github/scripts/test-offline-whisper.sh
du -h -d1 .
-
name
:
Test online paraformer
shell
:
bash
run
:
|
...
...
@@ -335,42 +388,3 @@ jobs:
.github/scripts/test-online-paraformer.sh
du -h -d1 .
-
name
:
Copy files
shell
:
bash
if
:
matrix.build_type == 'Release'
run
:
|
du -h -d1 .
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
if [[ ${{ matrix.shared_lib }} == 'ON' ]]; then
suffix=shared
else
suffix=static
fi
if [[ ${{ matrix.with_tts }} ]]; then
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-linux-x64-$suffix
else
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-linux-x64-$suffix-no-tts
fi
mkdir $dst
cp -a build/install/bin $dst/
cp -a build/install/lib $dst/
cp -a build/install/include $dst/
tree $dst
tar cjvf ${dst}.tar.bz2 $dst
du -h -d1 .
-
name
:
Release pre-compiled binaries and libs for linux x64
if
:
(github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/') && matrix.build_type == 'Release'
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
overwrite
:
true
file
:
sherpa-onnx-*.tar.bz2
...
...
.github/workflows/test-build-wheel.yaml
查看文件 @
dc2f7e9
...
...
@@ -137,8 +137,8 @@ jobs:
export PATH=/c/hostedtoolcache/windows/Python/3.9.13/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.12.8/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.13.1/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.12.9/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.13.2/x64/bin:$PATH
which sherpa-onnx
sherpa-onnx --help
...
...
.github/workflows/test-pip-install.yaml
查看文件 @
dc2f7e9
...
...
@@ -110,8 +110,8 @@ jobs:
export PATH=/c/hostedtoolcache/windows/Python/3.9.13/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.12.8/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.13.1/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.12.9/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.13.2/x64/bin:$PATH
sherpa-onnx --help
sherpa-onnx-keyword-spotter --help
...
...
.github/workflows/windows-x64.yaml
查看文件 @
dc2f7e9
...
...
@@ -158,9 +158,9 @@ jobs:
file_glob
:
true
overwrite
:
true
file
:
sherpa-onnx-*-win-x64*.tar.bz2
repo_name
:
k2-fsa/sherpa-onnx
repo_token
:
${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
tag
:
v1.10.45
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.10.45
-
name
:
Release pre-compiled binaries and libs for Windows x64
if
:
github.repository_owner == 'k2-fsa'&& github.event_name == 'push' && contains(github.ref, 'refs/tags/')
...
...
请
注册
或
登录
后发表评论