From a8629002bff750e185ce40ec99ef337e1bf6daa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 28 Apr 2023 09:53:34 +0300 Subject: [PATCH] github: Do rudimentary testing of the cross-built aarch64 toolchain with qemu Verify that it can compile the tests in llvm-mingw's testsuite; this should serve as a smoke test to see that the toolchain is correctly assembled. --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8688450..84d7f96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,10 +101,16 @@ jobs: rm llvm-mingw-*.tar.xz mv llvm-mingw* llvm-mingw-native - name: Assemble the cross-built toolchain + run: | + ./prepare-cross-toolchain-unix.sh $(pwd)/llvm-mingw-native $(pwd)/install/llvm-mingw + - name: Test using the cross-built assembled toolchain + run: | + sudo apt-get update && sudo apt-get install qemu-user-static libc6-arm64-cross libstdc++6-arm64-cross + QEMU_LD_PREFIX=/usr/aarch64-linux-gnu RUN_I686=false RUN_X86_64=false ./run-tests.sh $(pwd)/install/llvm-mingw + - name: Package the toolchain env: TAG: ${{needs.prepare.outputs.TAG}} run: | - ./prepare-cross-toolchain-unix.sh $(pwd)/llvm-mingw-native $(pwd)/install/llvm-mingw cd install DISTRO=ubuntu-$(grep DISTRIB_RELEASE /etc/lsb-release | cut -f 2 -d =)-aarch64 NAME=llvm-mingw-$TAG-ucrt-$DISTRO