正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -269,11 +269,12 @@ jobs: | @@ -269,11 +269,12 @@ jobs: | ||
| 269 | .github/scripts/test-online-transducer.sh | 269 | .github/scripts/test-online-transducer.sh |
| 270 | 270 | ||
| 271 | - name: Copy files | 271 | - name: Copy files |
| 272 | + if: matrix.build_type == 'Release' | ||
| 272 | shell: bash | 273 | shell: bash |
| 273 | run: | | 274 | run: | |
| 274 | SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | 275 | SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) |
| 275 | 276 | ||
| 276 | - if [[ ${{ matrix.with_tts }} ]]; then | 277 | + if [[ ${{ matrix.with_tts }} == ON ]]; then |
| 277 | dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }} | 278 | dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }} |
| 278 | else | 279 | else |
| 279 | dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}-no-tts | 280 | dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}-no-tts |
| @@ -290,7 +291,7 @@ jobs: | @@ -290,7 +291,7 @@ jobs: | ||
| 290 | tar cjvf ${dst}.tar.bz2 $dst | 291 | tar cjvf ${dst}.tar.bz2 $dst |
| 291 | 292 | ||
| 292 | - name: Release pre-compiled binaries and libs for macOS | 293 | - name: Release pre-compiled binaries and libs for macOS |
| 293 | - if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/') | 294 | + if: matrix.build_type == 'Release' && (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/') |
| 294 | uses: svenstaro/upload-release-action@v2 | 295 | uses: svenstaro/upload-release-action@v2 |
| 295 | with: | 296 | with: |
| 296 | file_glob: true | 297 | file_glob: true |
-
请 注册 或 登录 后发表评论