Fix CI tests (#218)

This commit is contained in:
Fangjun Kuang
2023-07-15 19:54:27 +08:00
committed by GitHub
parent 5d820b88ef
commit bd74e1c4e5
2 changed files with 8 additions and 4 deletions

View File

@@ -136,7 +136,6 @@ jobs:
qemu-aarch64 ./build-aarch64-linux-gnu/bin/sherpa-onnx --help
- name: Copy files
if: env.RELEASE == 'true'
shell: bash
run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -146,12 +145,15 @@ jobs:
cp -a build-aarch64-linux-gnu/install/bin $dst/
cp -a build-aarch64-linux-gnu/install/lib $dst/
cp -a build-aarch64-linux-gnu/install/include $dst/
tree $dst
tar cjvf ${dst}.tar.bz2 $dst
- uses: actions/upload-artifact@v2
with:
path: sherpa-onnx-*linux-aarch64.tar.bz2
- name: Release pre-compiled binaries and libs for aarch64 linux
if: env.RELEASE == 'true'
uses: svenstaro/upload-release-action@v2

View File

@@ -137,7 +137,6 @@ jobs:
qemu-arm ./build-arm-linux-gnueabihf/bin/sherpa-onnx --help
- name: Copy files
if: env.RELEASE == 'true'
shell: bash
run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -147,12 +146,15 @@ jobs:
cp -a build-arm-linux-gnueabihf/install/bin $dst/
cp -a build-arm-linux-gnueabihf/install/lib $dst/
cp -a build-arm-linux-gnueabihf/install/include $dst/
tree $dst
tar cjvf ${dst}.tar.bz2 $dst
- uses: actions/upload-artifact@v2
with:
path: sherpa-onnx-*linux-arm-gnueabihf.tar.bz2
- name: Release pre-compiled binaries and libs for arm linux gnueabihf
if: env.RELEASE == 'true'
uses: svenstaro/upload-release-action@v2