Build MFC examples for Windows x86 (Win32) (#434)

Also, strip binaries on Linux before uploading.
This commit is contained in:
Fangjun Kuang
2023-11-18 16:13:09 +08:00
committed by GitHub
parent 1a6a41eb2c
commit ac00edab5b
5 changed files with 71 additions and 31 deletions

View File

@@ -150,13 +150,25 @@ jobs:
- name: Copy files
shell: bash
run: |
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
arm-none-linux-gnueabihf-strip --version
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-linux-arm-gnueabihf-${{ matrix.lib_type }}
mkdir $dst
ls -lh build-arm-linux-gnueabihf/install/lib
cp -a build-arm-linux-gnueabihf/install/bin $dst/
cp -a build-arm-linux-gnueabihf/install/lib $dst/
ls -lh $dst/bin/*
arm-none-linux-gnueabihf-strip $dst/bin/*
ls -lh $dst
lib_type=${{ matrix.lib_type }}
if [[ $lib_type == "shared" ]]; then
cp -a build-arm-linux-gnueabihf/install/lib $dst/
fi
tree $dst