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-26 11:52:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-02-26 11:52:01 +0800
Commit
2f9a2b20a179f69aacdb5fc72c93bf2691950f64
2f9a2b20
1 parent
b042f5e1
Fix publishing macos pre-built artifacts (#1922)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
41 行增加
和
28 行删除
.github/workflows/macos.yaml
.github/workflows/macos.yaml
查看文件 @
2f9a2b2
...
...
@@ -112,6 +112,12 @@ jobs:
file ./bin/sherpa-onnx
rm -fv ./install/include/cargs.h
rm -fv ./install/lib/cargs.h
rm -fv ./install/lib/libcargs.dylib
rm -fv ./install/lib/libcargs.a
rm -rfv ./install/lib/pkgconfig
-
name
:
Display dependencies of sherpa-onnx for macos
shell
:
bash
run
:
|
...
...
@@ -119,6 +125,41 @@ jobs:
otool -L build/bin/sherpa-onnx
otool -l build/bin/sherpa-onnx
-
name
:
Copy files
if
:
matrix.build_type == 'Release'
shell
:
bash
run
:
|
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
if [[ ${{ matrix.with_tts }} == ON ]]; then
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}
else
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}-no-tts
fi
mkdir $dst
cp -a build/install/bin $dst/
if [[ ${{ matrix.lib_type }} == shared ]]; then
mkdir $dst/lib
cp -a build/install/lib/*.dylib* $dst/lib/
else
cp -a build/install/lib $dst/
fi
cp -a build/install/include $dst/
brew install tree
tree $dst
tar cjvf ${dst}.tar.bz2 $dst
-
name
:
Release pre-compiled binaries and libs for macOS
if
:
matrix.build_type == 'Release' && (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
overwrite
:
true
file
:
sherpa-onnx-*osx-universal2*.tar.bz2
-
name
:
Test offline TTS
if
:
matrix.with_tts == 'ON'
shell
:
bash
...
...
@@ -266,32 +307,4 @@ jobs:
.github/scripts/test-online-transducer.sh
-
name
:
Copy files
if
:
matrix.build_type == 'Release'
shell
:
bash
run
:
|
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
if [[ ${{ matrix.with_tts }} == ON ]]; then
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}
else
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}-no-tts
fi
mkdir $dst
cp -a build/install/bin $dst/
cp -a build/install/lib $dst/
cp -a build/install/include $dst/
brew install tree
tree $dst
tar cjvf ${dst}.tar.bz2 $dst
-
name
:
Release pre-compiled binaries and libs for macOS
if
:
matrix.build_type == 'Release' && (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
overwrite
:
true
file
:
sherpa-onnx-*osx-universal2*.tar.bz2
...
...
请
注册
或
登录
后发表评论