fix old version cmake not support --build, replace by -B
Some checks failed
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Failing after 44s

This commit is contained in:
tqcq 2023-12-06 11:20:39 +08:00
parent 643f9903f9
commit 9825253c6e

View File

@ -78,7 +78,7 @@ jobs:
cd ${{ github.workspace }}
yum clean all
yum install -y libarchive cmake make gcc gcc-c++ openssl-devel autoconf libtool pkg-config
cmake . --build build -DCMAKE_TOOLCHAIN_FILE=toolchains/hisiv500.toolchain.cmake -DULIB_BUILD_TESTS=ON -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-arm;-L;/opt/hisi-linux/x86-arm/arm-hisiv500-linux/"
cmake . -Bbuild -DCMAKE_TOOLCHAIN_FILE=toolchains/hisiv500.toolchain.cmake -DULIB_BUILD_TESTS=ON -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-arm;-L;/opt/hisi-linux/x86-arm/arm-hisiv500-linux/"
cmake --build build --target all -- -j `nproc`
export PATH=${{ github.workspace }}/qemu-install/bin:$PATH