Fangjun Kuang
Committed by GitHub

Fix CI tests (#218)

@@ -136,7 +136,6 @@ jobs: @@ -136,7 +136,6 @@ jobs:
136 qemu-aarch64 ./build-aarch64-linux-gnu/bin/sherpa-onnx --help 136 qemu-aarch64 ./build-aarch64-linux-gnu/bin/sherpa-onnx --help
137 137
138 - name: Copy files 138 - name: Copy files
139 - if: env.RELEASE == 'true'  
140 shell: bash 139 shell: bash
141 run: | 140 run: |
142 SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) 141 SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -146,12 +145,15 @@ jobs: @@ -146,12 +145,15 @@ jobs:
146 145
147 cp -a build-aarch64-linux-gnu/install/bin $dst/ 146 cp -a build-aarch64-linux-gnu/install/bin $dst/
148 cp -a build-aarch64-linux-gnu/install/lib $dst/ 147 cp -a build-aarch64-linux-gnu/install/lib $dst/
149 - cp -a build-aarch64-linux-gnu/install/include $dst/  
150 148
151 tree $dst 149 tree $dst
152 150
153 tar cjvf ${dst}.tar.bz2 $dst 151 tar cjvf ${dst}.tar.bz2 $dst
154 152
  153 + - uses: actions/upload-artifact@v2
  154 + with:
  155 + path: sherpa-onnx-*linux-aarch64.tar.bz2
  156 +
155 - name: Release pre-compiled binaries and libs for aarch64 linux 157 - name: Release pre-compiled binaries and libs for aarch64 linux
156 if: env.RELEASE == 'true' 158 if: env.RELEASE == 'true'
157 uses: svenstaro/upload-release-action@v2 159 uses: svenstaro/upload-release-action@v2
@@ -137,7 +137,6 @@ jobs: @@ -137,7 +137,6 @@ jobs:
137 qemu-arm ./build-arm-linux-gnueabihf/bin/sherpa-onnx --help 137 qemu-arm ./build-arm-linux-gnueabihf/bin/sherpa-onnx --help
138 138
139 - name: Copy files 139 - name: Copy files
140 - if: env.RELEASE == 'true'  
141 shell: bash 140 shell: bash
142 run: | 141 run: |
143 SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) 142 SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -147,12 +146,15 @@ jobs: @@ -147,12 +146,15 @@ jobs:
147 146
148 cp -a build-arm-linux-gnueabihf/install/bin $dst/ 147 cp -a build-arm-linux-gnueabihf/install/bin $dst/
149 cp -a build-arm-linux-gnueabihf/install/lib $dst/ 148 cp -a build-arm-linux-gnueabihf/install/lib $dst/
150 - cp -a build-arm-linux-gnueabihf/install/include $dst/  
151 149
152 tree $dst 150 tree $dst
153 151
154 tar cjvf ${dst}.tar.bz2 $dst 152 tar cjvf ${dst}.tar.bz2 $dst
155 153
  154 + - uses: actions/upload-artifact@v2
  155 + with:
  156 + path: sherpa-onnx-*linux-arm-gnueabihf.tar.bz2
  157 +
156 - name: Release pre-compiled binaries and libs for arm linux gnueabihf 158 - name: Release pre-compiled binaries and libs for arm linux gnueabihf
157 if: env.RELEASE == 'true' 159 if: env.RELEASE == 'true'
158 uses: svenstaro/upload-release-action@v2 160 uses: svenstaro/upload-release-action@v2