@@ -67,14 +67,13 @@ jobs:
6767 ./uclibc-test.sh i686
6868
6969 tests_on_qemu :
70- name : Tests on Qemu (arm, armhf, arm64, ppc, ppc64le and riscv64 )
70+ name : Tests on Qemu (arm, armhf, arm64, ppc, ppc64le, riscv64, s390x and loongarch64 )
7171 if : github.event.inputs.tests_on_qemu == 'true' || github.event.inputs.tests_on_qemu == ''
7272 strategy :
7373 fail-fast : false
7474 matrix :
7575 optimization : ["", "-O2", "-O3"]
76- # TODO: Sanitizer fails in armhf and aarch64
77- # sanitize: ["", "-g -fsanitize=address -fsanitize=undefined"]
76+ sanitize : ["", "-g -fsanitize=address -fsanitize=undefined"]
7877 runs-on : ubuntu-latest
7978 defaults :
8079 run :
@@ -84,12 +83,10 @@ jobs:
8483 - name : Install packages
8584 run : |
8685 sudo apt update
87- sudo apt install -y qemu-user gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu gcc-powerpc-linux-gnu gcc-powerpc64le-linux-gnu gcc-riscv64-linux-gnu gcc-s390x-linux-gnu libc6-dev-armhf-cross libc6-dev-ppc64el-cross libc6-dev-powerpc-cross libc6-dev-armel-cross libc6-dev-arm64-cross libc6-dev-s390x-cross
86+ sudo apt install -y qemu-user gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu gcc-powerpc-linux-gnu gcc-powerpc64le-linux-gnu gcc-riscv64-linux-gnu gcc-s390x-linux-gnu gcc-14-loongarch64-linux-gnu libc6-dev-armhf-cross libc6-dev-ppc64el-cross libc6-dev-powerpc-cross libc6-dev-armel-cross libc6-dev-arm64-cross libc6-dev-s390x-cross libc6-dev-loong64 -cross
8887 - name : Set OPT_CLFAGS
8988 run : |
90- echo OPT_CFLAGS="${{ matrix.optimization }}" >> $GITHUB_ENV
91- # TODO: Sanitizer fails in armhf and aarch64
92- # echo OPT_CFLAGS="${{ matrix.optimization }} ${{ matrix.sanitize }}" >> $GITHUB_ENV
89+ echo OPT_CFLAGS="${{ matrix.optimization }} ${{ matrix.sanitize }}" >> $GITHUB_ENV
9390 - name : arm-linux-gnueabi
9491 env :
9592 OPT_CFLAGS : " -latomic"
10299 run : |
103100 make relro_pie_tests TARGET_PLATFORM=arm-linux-gnueabihf
104101 - name : aarch64-linux-gnu
105- # TODO: aarch64 fails with optimizations https://github.com/kubo/plthook/issues/51
106- if : ${{ matrix.optimization == '' }}
107102 run : |
108103 make relro_pie_tests TARGET_PLATFORM=aarch64-linux-gnu
109104 - name : powerpc-linux-gnu
@@ -118,6 +113,9 @@ jobs:
118113 - name : s390x-linux-gnu
119114 run : |
120115 make relro_pie_tests TARGET_PLATFORM=s390x-linux-gnu QEMU_ARCH=s390x
116+ - name : loongarch64-linux-gnu
117+ run : |
118+ make relro_pie_tests TARGET_PLATFORM=loongarch64-linux-gnu QEMU_ARCH=loongarch64 GCC_VERSION=14
121119
122120 tests_on_macos :
123121 name : Tests on macOS
0 commit comments