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
2022-10-12 21:08:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2022-10-12 21:08:51 +0800
Commit
93539b6f91133452268641d28965cff0cd61d0b9
93539b6f
1 parent
fb284552
Support macOS (#14)
* support macos * Update CI to test macos
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
17 行增加
和
8 行删除
.github/workflows/test-linux.yaml → .github/workflows/test-linux-macos.yaml
cmake/onnxruntime.cmake
.github/workflows/test-linux.yaml → .github/workflows/test-linux
-macos
.yaml
查看文件 @
93539b6
name
:
test-linux
name
:
test-linux
-macos
on
:
push
:
branches
:
-
master
paths
:
-
'
.github/workflows/test-linux.yaml'
-
'
.github/workflows/test-linux
-macos
.yaml'
-
'
CMakeLists.txt'
-
'
cmake/**'
-
'
sherpa-onnx/csrc/*'
...
...
@@ -13,13 +13,13 @@ on:
branches
:
-
master
paths
:
-
'
.github/workflows/test-linux.yaml'
-
'
.github/workflows/test-linux
-macos
.yaml'
-
'
CMakeLists.txt'
-
'
cmake/**'
-
'
sherpa-onnx/csrc/*'
concurrency
:
group
:
test-linux-${{ github.ref }}
group
:
test-linux-
macos-
${{ github.ref }}
cancel-in-progress
:
true
permissions
:
...
...
@@ -31,7 +31,7 @@ jobs:
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
]
os
:
[
ubuntu-latest
,
macos-latest
]
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -51,12 +51,12 @@ jobs:
cd build
cmake -D CMAKE_BUILD_TYPE=Release ..
-
name
:
Build sherpa-onnx for ubuntu
-
name
:
Build sherpa-onnx for ubuntu
/macos
run
:
|
cd build
make VERBOSE=1 -j3
-
name
:
Run tests for ubuntu (English)
-
name
:
Run tests for ubuntu
/macos
(English)
run
:
|
time ./build/bin/sherpa-onnx \
./icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/exp/onnx/encoder.onnx \
...
...
cmake/onnxruntime.cmake
查看文件 @
93539b6
...
...
@@ -22,8 +22,17 @@ function(download_onnxruntime)
#
# ./include
# It contains all the needed header files
elseif
(
APPLE
)
set
(
onnxruntime_URL
"https://github.com/microsoft/onnxruntime/releases/download/v1.12.1/onnxruntime-osx-x86_64-1.12.1.tgz"
)
set
(
onnxruntime_HASH
"SHA256=10921c2e75817edcbfc8b29882612be07e25dd33c8449d5892a9d45588898099"
)
# After downloading, it contains:
# ./lib/libonnxruntime.1.12.1.dylib
# ./lib/libonnxruntime.dylib, which is a symlink to lib/libonnxruntime.1.12.1.dylib
#
# ./include
# It contains all the needed header files
else
()
message
(
FATAL_ERROR
"Only support Linux at present. Will support other OSes later"
)
message
(
FATAL_ERROR
"Only support Linux a
nd macOS a
t present. Will support other OSes later"
)
endif
()
FetchContent_Declare
(
onnxruntime
...
...
请
注册
或
登录
后发表评论