Committed by
GitHub
Publish jar for more java versions (#2017)
正在显示
2 个修改的文件
包含
13 行增加
和
12 行删除
| @@ -20,7 +20,7 @@ jobs: | @@ -20,7 +20,7 @@ jobs: | ||
| 20 | fail-fast: false | 20 | fail-fast: false |
| 21 | matrix: | 21 | matrix: |
| 22 | os: [ubuntu-latest] | 22 | os: [ubuntu-latest] |
| 23 | - java-version: ['8', '11', '16', '17', '21'] | 23 | + java-version: ['8', '11', '16', '17', '18', '19', '20', '21', '22', '23'] |
| 24 | 24 | ||
| 25 | steps: | 25 | steps: |
| 26 | - uses: actions/checkout@v4 | 26 | - uses: actions/checkout@v4 |
| @@ -40,7 +40,7 @@ jobs: | @@ -40,7 +40,7 @@ jobs: | ||
| 40 | du -h -d1 . | 40 | du -h -d1 . |
| 41 | 41 | ||
| 42 | - name: Build jar ${{ matrix.java-version }} | 42 | - name: Build jar ${{ matrix.java-version }} |
| 43 | - if: matrix.java-version == '21' | 43 | + if: matrix.java-version == '23' |
| 44 | shell: bash | 44 | shell: bash |
| 45 | run: | | 45 | run: | |
| 46 | SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | 46 | SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) |
| @@ -76,10 +76,10 @@ jobs: | @@ -76,10 +76,10 @@ jobs: | ||
| 76 | file: ./*.jar | 76 | file: ./*.jar |
| 77 | # repo_name: k2-fsa/sherpa-onnx | 77 | # repo_name: k2-fsa/sherpa-onnx |
| 78 | # repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} | 78 | # repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} |
| 79 | - # tag: v1.10.23 | 79 | + # tag: v1.11.1 |
| 80 | 80 | ||
| 81 | - name: Build sherpa-onnx | 81 | - name: Build sherpa-onnx |
| 82 | - if: matrix.java-version == '21' | 82 | + if: matrix.java-version == '23' |
| 83 | uses: addnab/docker-run-action@v3 | 83 | uses: addnab/docker-run-action@v3 |
| 84 | with: | 84 | with: |
| 85 | image: quay.io/pypa/manylinux2014_x86_64 | 85 | image: quay.io/pypa/manylinux2014_x86_64 |
| @@ -136,6 +136,7 @@ jobs: | @@ -136,6 +136,7 @@ jobs: | ||
| 136 | rm -rf ./install/include/cargs.h | 136 | rm -rf ./install/include/cargs.h |
| 137 | rm -rf ./install/lib/libcargs.so | 137 | rm -rf ./install/lib/libcargs.so |
| 138 | rm -rf ./install/lib/libsherpa-onnx-c-api.so | 138 | rm -rf ./install/lib/libsherpa-onnx-c-api.so |
| 139 | + rm -rf ./install/lib/libsherpa-onnx-cxx-api.so | ||
| 139 | 140 | ||
| 140 | echo "----" | 141 | echo "----" |
| 141 | ls -lh install/lib | 142 | ls -lh install/lib |
| @@ -144,7 +145,7 @@ jobs: | @@ -144,7 +145,7 @@ jobs: | ||
| 144 | ls -lh install/bin | 145 | ls -lh install/bin |
| 145 | 146 | ||
| 146 | - name: Display dependencies of sherpa-onnx for linux | 147 | - name: Display dependencies of sherpa-onnx for linux |
| 147 | - if: matrix.java-version == '21' | 148 | + if: matrix.java-version == '23' |
| 148 | shell: bash | 149 | shell: bash |
| 149 | run: | | 150 | run: | |
| 150 | du -h -d1 . | 151 | du -h -d1 . |
| @@ -163,13 +164,13 @@ jobs: | @@ -163,13 +164,13 @@ jobs: | ||
| 163 | readelf -d build/bin/sherpa-onnx | 164 | readelf -d build/bin/sherpa-onnx |
| 164 | 165 | ||
| 165 | - uses: actions/upload-artifact@v4 | 166 | - uses: actions/upload-artifact@v4 |
| 166 | - if: matrix.java-version == '21' | 167 | + if: matrix.java-version == '23' |
| 167 | with: | 168 | with: |
| 168 | name: release-jni-linux-${{ matrix.java-version }} | 169 | name: release-jni-linux-${{ matrix.java-version }} |
| 169 | path: build/install/* | 170 | path: build/install/* |
| 170 | 171 | ||
| 171 | - name: Copy files | 172 | - name: Copy files |
| 172 | - if: matrix.java-version == '21' | 173 | + if: matrix.java-version == '23' |
| 173 | shell: bash | 174 | shell: bash |
| 174 | run: | | 175 | run: | |
| 175 | du -h -d1 . | 176 | du -h -d1 . |
| @@ -188,7 +189,7 @@ jobs: | @@ -188,7 +189,7 @@ jobs: | ||
| 188 | du -h -d1 . | 189 | du -h -d1 . |
| 189 | 190 | ||
| 190 | - name: Publish to huggingface | 191 | - name: Publish to huggingface |
| 191 | - if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && matrix.java-version == '21' | 192 | + if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && matrix.java-version == '23' |
| 192 | env: | 193 | env: |
| 193 | HF_TOKEN: ${{ secrets.HF_TOKEN }} | 194 | HF_TOKEN: ${{ secrets.HF_TOKEN }} |
| 194 | uses: nick-fields/retry@v3 | 195 | uses: nick-fields/retry@v3 |
| @@ -222,7 +223,7 @@ jobs: | @@ -222,7 +223,7 @@ jobs: | ||
| 222 | git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs main | 223 | git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs main |
| 223 | 224 | ||
| 224 | - name: Release pre-compiled binaries and libs for linux x64 | 225 | - name: Release pre-compiled binaries and libs for linux x64 |
| 225 | - if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/') && matrix.java-version == '21' | 226 | + if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/') && matrix.java-version == '23' |
| 226 | uses: svenstaro/upload-release-action@v2 | 227 | uses: svenstaro/upload-release-action@v2 |
| 227 | with: | 228 | with: |
| 228 | file_glob: true | 229 | file_glob: true |
| @@ -9,20 +9,20 @@ | @@ -9,20 +9,20 @@ | ||
| 9 | # | 9 | # |
| 10 | # (a) Make sure your board has NVIDIA GPU(s) | 10 | # (a) Make sure your board has NVIDIA GPU(s) |
| 11 | # | 11 | # |
| 12 | -# (b) For Jetson Nano B01 (using CUDA 10.2) | 12 | +# (b) For Jetson Nano B01 (using CUDA 10.2, cudnn8) |
| 13 | # | 13 | # |
| 14 | # export SHERPA_ONNX_ENABLE_GPU=ON | 14 | # export SHERPA_ONNX_ENABLE_GPU=ON |
| 15 | # export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.11.0 | 15 | # export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.11.0 |
| 16 | # ./build-aarch64-linux-gnu.sh | 16 | # ./build-aarch64-linux-gnu.sh |
| 17 | # | 17 | # |
| 18 | -# (c) For Jetson Orin NX (using CUDA 11.4) | 18 | +# (c) For Jetson Orin NX (using CUDA 11.4, cudnn8) |
| 19 | # | 19 | # |
| 20 | # export SHERPA_ONNX_ENABLE_GPU=ON | 20 | # export SHERPA_ONNX_ENABLE_GPU=ON |
| 21 | # export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.16.0 | 21 | # export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.16.0 |
| 22 | # ./build-aarch64-linux-gnu.sh | 22 | # ./build-aarch64-linux-gnu.sh |
| 23 | # | 23 | # |
| 24 | # (d) For NVIDIA Jetson Orin Nano Engineering Reference Developer Kit Super | 24 | # (d) For NVIDIA Jetson Orin Nano Engineering Reference Developer Kit Super |
| 25 | -# Jetpack 6.2 [L4T 36.4.3] (CUDA 12.6) | 25 | +# Jetpack 6.2 [L4T 36.4.3] (CUDA 12.6, cudnn9) |
| 26 | # | 26 | # |
| 27 | # export SHERPA_ONNX_ENABLE_GPU=ON | 27 | # export SHERPA_ONNX_ENABLE_GPU=ON |
| 28 | # export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.18.1 | 28 | # export SHERPA_ONNX_LINUX_ARM64_GPU_ONNXRUNTIME_VERSION=1.18.1 |
-
请 注册 或 登录 后发表评论