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-03-18 11:42:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-03-18 11:42:27 +0800
Commit
0e0afb2cc8778b9f4609da10d32fe9cfaf5c432b
0e0afb2c
1 parent
40627221
Publish jar for more java versions (#2017)
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
13 行增加
和
12 行删除
.github/workflows/linux-jni.yaml
build-aarch64-linux-gnu.sh
.github/workflows/linux-jni.yaml
查看文件 @
0e0afb2
...
...
@@ -20,7 +20,7 @@ jobs:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
]
java-version
:
[
'
8'
,
'
11'
,
'
16'
,
'
17'
,
'
21
'
]
java-version
:
[
'
8'
,
'
11'
,
'
16'
,
'
17'
,
'
18'
,
'
19'
,
'
20'
,
'
21'
,
'
22'
,
'
23
'
]
steps
:
-
uses
:
actions/checkout@v4
...
...
@@ -40,7 +40,7 @@ jobs:
du -h -d1 .
-
name
:
Build jar ${{ matrix.java-version }}
if
:
matrix.java-version == '2
1
'
if
:
matrix.java-version == '2
3
'
shell
:
bash
run
:
|
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
...
...
@@ -76,10 +76,10 @@ jobs:
file
:
./*.jar
# repo_name: k2-fsa/sherpa-onnx
# repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
# tag: v1.1
0.23
# tag: v1.1
1.1
-
name
:
Build sherpa-onnx
if
:
matrix.java-version == '2
1
'
if
:
matrix.java-version == '2
3
'
uses
:
addnab/docker-run-action@v3
with
:
image
:
quay.io/pypa/manylinux2014_x86_64
...
...
@@ -136,6 +136,7 @@ jobs:
rm -rf ./install/include/cargs.h
rm -rf ./install/lib/libcargs.so
rm -rf ./install/lib/libsherpa-onnx-c-api.so
rm -rf ./install/lib/libsherpa-onnx-cxx-api.so
echo "----"
ls -lh install/lib
...
...
@@ -144,7 +145,7 @@ jobs:
ls -lh install/bin
-
name
:
Display dependencies of sherpa-onnx for linux
if
:
matrix.java-version == '2
1
'
if
:
matrix.java-version == '2
3
'
shell
:
bash
run
:
|
du -h -d1 .
...
...
@@ -163,13 +164,13 @@ jobs:
readelf -d build/bin/sherpa-onnx
-
uses
:
actions/upload-artifact@v4
if
:
matrix.java-version == '2
1
'
if
:
matrix.java-version == '2
3
'
with
:
name
:
release-jni-linux-${{ matrix.java-version }}
path
:
build/install/*
-
name
:
Copy files
if
:
matrix.java-version == '2
1
'
if
:
matrix.java-version == '2
3
'
shell
:
bash
run
:
|
du -h -d1 .
...
...
@@ -188,7 +189,7 @@ jobs:
du -h -d1 .
-
name
:
Publish to huggingface
if
:
(github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && matrix.java-version == '2
1
'
if
:
(github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && matrix.java-version == '2
3
'
env
:
HF_TOKEN
:
${{ secrets.HF_TOKEN }}
uses
:
nick-fields/retry@v3
...
...
@@ -222,7 +223,7 @@ jobs:
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs main
-
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.java-version == '2
1
'
if
:
(github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/') && matrix.java-version == '2
3
'
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
...
...
build-aarch64-linux-gnu.sh
查看文件 @
0e0afb2
...
...
@@ -9,20 +9,20 @@
#
# (a) Make sure your board has NVIDIA GPU(s)
#
# (b) For Jetson Nano B01 (using CUDA 10.2)
# (b) For Jetson Nano B01 (using CUDA 10.2
, cudnn8
)
#
# export SHERPA_ONNX_ENABLE_GPU=ON
# export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.11.0
# ./build-aarch64-linux-gnu.sh
#
# (c) For Jetson Orin NX (using CUDA 11.4)
# (c) For Jetson Orin NX (using CUDA 11.4
, cudnn8
)
#
# export SHERPA_ONNX_ENABLE_GPU=ON
# export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.16.0
# ./build-aarch64-linux-gnu.sh
#
# (d) For NVIDIA Jetson Orin Nano Engineering Reference Developer Kit Super
# Jetpack 6.2 [L4T 36.4.3] (CUDA 12.6)
# Jetpack 6.2 [L4T 36.4.3] (CUDA 12.6
, cudnn9
)
#
# export SHERPA_ONNX_ENABLE_GPU=ON
# export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.18.1
...
...
请
注册
或
登录
后发表评论