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.
This commit is contained in:
1 parent
0e13ea4e5a
commit
a8629002bf
1 file changed
+7
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user