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
2024-02-20 09:31:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-02-20 09:31:37 +0800
Commit
c68f39bd3cb3f024312d1a8a7bea98242fc290a7
c68f39bd
1 parent
2ab1fa02
Use onnxruntime static lib compiled with gcc8 on ubuntu 20.04 (#587)
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
44 行增加
和
18 行删除
.github/workflows/linux.yaml
cmake/onnxruntime-linux-x86_64-static.cmake
cmake/piper-phonemize.cmake
.github/workflows/linux.yaml
查看文件 @
c68f39b
...
...
@@ -45,24 +45,50 @@ concurrency:
jobs
:
linux
:
name
:
${{ matrix.
build_type }} ${{ matrix.shared_lib
}}
name
:
${{ matrix.
os }} ${{ matrix.build_type }} ${{ matrix.shared_lib }} ${{ matrix.gcc_version
}}
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-
latest
]
os
:
[
ubuntu-
20.04
,
ubuntu-22.04
]
build_type
:
[
Release
,
Debug
]
shared_lib
:
[
ON
,
OFF
]
# see https://github.com/egor-tensin/setup-gcc
# 7-11 for ubuntu 20.04
# 9-12 for ubuntu 22.04
gcc_version
:
[
"
7"
,
"
8"
,
"
9"
,
"
10"
,
"
11"
,
"
12"
,
"
13"
]
exclude
:
-
os
:
ubuntu-20.04
gcc_version
:
"
12"
-
os
:
ubuntu-22.04
gcc_version
:
"
7"
-
os
:
ubuntu-22.04
gcc_version
:
"
8"
steps
:
-
uses
:
actions/checkout@v4
with
:
fetch-depth
:
0
-
name
:
Set up GCC ${{ matrix.gcc_version }}
uses
:
egor-tensin/setup-gcc@v1
with
:
version
:
${{ matrix.gcc_version }}
platform
:
x64
-
name
:
Display gcc version ${{ matrix.gcc_version }}
shell
:
bash
run
:
|
which gcc
gcc --version
which g++
g++ --version
-
name
:
ccache
uses
:
hendrikmuhs/ccache-action@v1.2
with
:
key
:
${{ matrix.os }}-${{ matrix.build_type }}-shared-${{ matrix.shared_lib }}
key
:
${{ matrix.os }}-${{ matrix.build_type }}-shared-${{ matrix.shared_lib }}
-gcc-${{ matrix.gcc_version }}
-
name
:
Configure CMake
shell
:
bash
...
...
cmake/onnxruntime-linux-x86_64-static.cmake
查看文件 @
c68f39b
...
...
@@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
message
(
FATAL_ERROR
"This file is for building static libraries. BUILD_SHARED_LIBS:
${
BUILD_SHARED_LIBS
}
"
)
endif
()
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-x64-static_lib-1.17.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-static_lib-1.17.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=137a5e5a9195c74452f3b772533545441ef0933a154fa006f2a13da8f956907d"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip"
)
set
(
onnxruntime_HASH
"SHA256=4217302eac0d645b4c2b5fa13d1627c0384d2531615b4a51a52326c01568cc0c"
)
# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set
(
possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.17.0.zip
${
CMAKE_SOURCE_DIR
}
/onnxruntime-linux-x64-static_lib-1.17.0.zip
${
CMAKE_BINARY_DIR
}
/onnxruntime-linux-x64-static_lib-1.17.0.zip
/tmp/onnxruntime-linux-x64-static_lib-1.17.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.17.0.zip
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
${
CMAKE_SOURCE_DIR
}
/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
${
CMAKE_BINARY_DIR
}
/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
/tmp/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.17.0-gcc-8.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/piper-phonemize.cmake
查看文件 @
c68f39b
function
(
download_piper_phonemize
)
include
(
FetchContent
)
set
(
piper_phonemize_URL
"https://github.com/csukuangfj/piper-phonemize/archive/
6383e46b62e94c5cafc0c6a6212249ed8b9ed8d0
.zip"
)
set
(
piper_phonemize_URL
"https://github.com/csukuangfj/piper-phonemize/archive/
dc6b5f4441bffe521047086930b0fc12686acd56
.zip"
)
set
(
piper_phonemize_URL2
""
)
set
(
piper_phonemize_HASH
"SHA256=
6fbacf540b03f00d1386bb372fb7090e3bb852bd019d74e615d3f161f728bc93
"
)
set
(
piper_phonemize_HASH
"SHA256=
b9faa04204b1756fa455a962abb1f037041c040133d55be58d11f11ab9b3ce14
"
)
# If you don't have access to the Internet,
# please pre-download kaldi-decoder
set
(
possible_file_locations
$ENV{HOME}/Downloads/piper-phonemize-6383e46b62e94c5cafc0c6a6212249ed8b9ed8d0.zip
${
CMAKE_SOURCE_DIR
}
/piper-phonemize-6383e46b62e94c5cafc0c6a6212249ed8b9ed8d0.zip
${
CMAKE_BINARY_DIR
}
/piper-phonemize-6383e46b62e94c5cafc0c6a6212249ed8b9ed8d0.zip
/tmp/piper-phonemize-6383e46b62e94c5cafc0c6a6212249ed8b9ed8d0.zip
/star-fj/fangjun/download/github/piper-phonemize-6383e46b62e94c5cafc0c6a6212249ed8b9ed8d0.zip
$ENV{HOME}/Downloads/piper-phonemize-dc6b5f4441bffe521047086930b0fc12686acd56.zip
${
CMAKE_SOURCE_DIR
}
/piper-phonemize-dc6b5f4441bffe521047086930b0fc12686acd56.zip
${
CMAKE_BINARY_DIR
}
/piper-phonemize-dc6b5f4441bffe521047086930b0fc12686acd56.zip
/tmp/piper-phonemize-dc6b5f4441bffe521047086930b0fc12686acd56.zip
/star-fj/fangjun/download/github/piper-phonemize-dc6b5f4441bffe521047086930b0fc12686acd56.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
请
注册
或
登录
后发表评论