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-03-07 17:14:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-03-07 17:14:52 +0800
Commit
1cf2c0417a1bfed6996e1d8114fe29e31f7882e8
1cf2c041
1 parent
822e05f1
Ci windows x86 (#87)
* CI for 32-bit windows * small fixes
隐藏空白字符变更
内嵌
并排对比
正在显示
8 个修改的文件
包含
102 行增加
和
9 行删除
.github/workflows/windows-x86.yaml
cmake/asio.cmake
cmake/googletest.cmake
cmake/kaldi-native-fbank.cmake
cmake/onnxruntime.cmake
cmake/portaudio.cmake
cmake/pybind11.cmake
cmake/websocketpp.cmake
.github/workflows/windows-x86.yaml
0 → 100644
查看文件 @
1cf2c04
name
:
windows-x86
on
:
push
:
branches
:
-
master
paths
:
-
'
.github/workflows/windows-x86.yaml'
-
'
.github/scripts/test-online-transducer.sh'
-
'
CMakeLists.txt'
-
'
cmake/**'
-
'
sherpa-onnx/csrc/*'
pull_request
:
branches
:
-
master
paths
:
-
'
.github/workflows/windows-x86.yaml'
-
'
.github/scripts/test-online-transducer.sh'
-
'
CMakeLists.txt'
-
'
cmake/**'
-
'
sherpa-onnx/csrc/*'
concurrency
:
group
:
windows-x86-${{ github.ref }}
cancel-in-progress
:
true
permissions
:
contents
:
read
jobs
:
windows_x86
:
runs-on
:
${{ matrix.os }}
name
:
${{ matrix.vs-version }}
strategy
:
fail-fast
:
false
matrix
:
include
:
-
vs-version
:
vs2015
toolset-version
:
v140
os
:
windows-2019
-
vs-version
:
vs2017
toolset-version
:
v141
os
:
windows-2019
-
vs-version
:
vs2019
toolset-version
:
v142
os
:
windows-2022
-
vs-version
:
vs2022
toolset-version
:
v143
os
:
windows-2022
steps
:
-
uses
:
actions/checkout@v2
with
:
fetch-depth
:
0
-
name
:
Configure CMake
shell
:
bash
run
:
|
mkdir build
cd build
cmake -T ${{ matrix.toolset-version}},host=x64 -A Win32 -D CMAKE_BUILD_TYPE=Release ..
-
name
:
Build sherpa-onnx for windows
shell
:
bash
run
:
|
cd build
cmake --build . --config Release -- -m:2
ls -lh ./bin/Release/sherpa-onnx.exe
-
name
:
Test sherpa-onnx for Windows x86
shell
:
bash
run
:
|
export PATH=$PWD/build/bin/Release:$PATH
export EXE=sherpa-onnx.exe
.github/scripts/test-online-transducer.sh
-
name
:
Test online transducer (C API)
shell
:
bash
run
:
|
export PATH=$PWD/build/bin/Release:$PATH
export EXE=decode-file-c-api.exe
.github/scripts/test-online-transducer.sh
...
...
cmake/asio.cmake
查看文件 @
1cf2c04
...
...
@@ -17,7 +17,7 @@ function(download_asio)
foreach
(
f IN LISTS possible_file_locations
)
if
(
EXISTS
${
f
}
)
set
(
asio_URL
"
file://
${
f
}
"
)
set
(
asio_URL
"
${
f
}
"
)
set
(
asio_URL2
)
break
()
endif
()
...
...
cmake/googletest.cmake
查看文件 @
1cf2c04
...
...
@@ -17,7 +17,7 @@ function(download_googltest)
foreach
(
f IN LISTS possible_file_locations
)
if
(
EXISTS
${
f
}
)
set
(
googletest_URL
"
file://
${
f
}
"
)
set
(
googletest_URL
"
${
f
}
"
)
set
(
googletest_URL2
)
break
()
endif
()
...
...
cmake/kaldi-native-fbank.cmake
查看文件 @
1cf2c04
...
...
@@ -21,7 +21,7 @@ function(download_kaldi_native_fbank)
foreach
(
f IN LISTS possible_file_locations
)
if
(
EXISTS
${
f
}
)
set
(
kaldi_native_fbank_URL
"
file://
${
f
}
"
)
set
(
kaldi_native_fbank_URL
"
${
f
}
"
)
set
(
kaldi_native_fbank_URL2
)
break
()
endif
()
...
...
cmake/onnxruntime.cmake
查看文件 @
1cf2c04
...
...
@@ -52,10 +52,12 @@ function(download_onnxruntime)
# ./include
# It contains all the needed header files
elseif
(
WIN32
)
# If you don't have access to the Internet,
# please pre-download onnxruntime
message
(
STATUS
"CMAKE_VS_PLATFORM_NAME:
${
CMAKE_VS_PLATFORM_NAME
}
"
)
if
(
CMAKE_VS_PLATFORM_NAME STREQUAL Win32
)
# If you don't have access to the Internet,
# please pre-download onnxruntime
#
# for 32-bit windows
set
(
possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-win-x86-1.14.0.zip
...
...
@@ -68,6 +70,9 @@ function(download_onnxruntime)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x86-1.14.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=4214b130db602cbf31a6f26f25377ab077af0cf03c4ddd4651283e1fb68f56cf"
)
else
()
# If you don't have access to the Internet,
# please pre-download onnxruntime
#
# for 64-bit windows
set
(
possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-win-x64-1.14.0.zip
...
...
@@ -94,7 +99,7 @@ function(download_onnxruntime)
foreach
(
f IN LISTS possible_file_locations
)
if
(
EXISTS
${
f
}
)
set
(
onnxruntime_URL
"
file://
${
f
}
"
)
set
(
onnxruntime_URL
"
${
f
}
"
)
set
(
onnxruntime_URL2
)
break
()
endif
()
...
...
cmake/portaudio.cmake
查看文件 @
1cf2c04
...
...
@@ -18,7 +18,7 @@ function(download_portaudio)
foreach
(
f IN LISTS possible_file_locations
)
if
(
EXISTS
${
f
}
)
set
(
portaudio_URL
"
file://
${
f
}
"
)
set
(
portaudio_URL
"
${
f
}
"
)
set
(
portaudio_URL2
)
break
()
endif
()
...
...
cmake/pybind11.cmake
查看文件 @
1cf2c04
...
...
@@ -17,7 +17,7 @@ function(download_pybind11)
foreach
(
f IN LISTS possible_file_locations
)
if
(
EXISTS
${
f
}
)
set
(
pybind11_URL
"
file://
${
f
}
"
)
set
(
pybind11_URL
"
${
f
}
"
)
set
(
pybind11_URL2
)
break
()
endif
()
...
...
cmake/websocketpp.cmake
查看文件 @
1cf2c04
...
...
@@ -18,7 +18,7 @@ function(download_websocketpp)
foreach
(
f IN LISTS possible_file_locations
)
if
(
EXISTS
${
f
}
)
set
(
websocketpp_URL
"
file://
${
f
}
"
)
set
(
websocketpp_URL
"
${
f
}
"
)
set
(
websocketpp_URL2
)
break
()
endif
()
...
...
请
注册
或
登录
后发表评论