Fix building macOS libs (#1656)
This commit is contained in:
5
.github/workflows/macos.yaml
vendored
5
.github/workflows/macos.yaml
vendored
@@ -269,11 +269,12 @@ jobs:
|
|||||||
.github/scripts/test-online-transducer.sh
|
.github/scripts/test-online-transducer.sh
|
||||||
|
|
||||||
- name: Copy files
|
- name: Copy files
|
||||||
|
if: matrix.build_type == 'Release'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
|
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
|
||||||
|
|
||||||
if [[ ${{ matrix.with_tts }} ]]; then
|
if [[ ${{ matrix.with_tts }} == ON ]]; then
|
||||||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}
|
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}
|
||||||
else
|
else
|
||||||
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}-no-tts
|
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-osx-universal2-${{ matrix.lib_type }}-no-tts
|
||||||
@@ -290,7 +291,7 @@ jobs:
|
|||||||
tar cjvf ${dst}.tar.bz2 $dst
|
tar cjvf ${dst}.tar.bz2 $dst
|
||||||
|
|
||||||
- name: Release pre-compiled binaries and libs for macOS
|
- name: Release pre-compiled binaries and libs for macOS
|
||||||
if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
if: matrix.build_type == 'Release' && (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
file_glob: true
|
file_glob: true
|
||||||
|
|||||||
Reference in New Issue
Block a user