From 58698377353bd0ea06dd68cefcbd3aee05bb1622 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Thu, 13 Aug 2026 16:30:07 +0900 Subject: ci: test RISC-V with QEMU Cross-compile for riscv64 on Ubuntu 24.04 and run the test suite through QEMU, covering the RISC-V-specific crypto code. --- scripts/test | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/test') diff --git a/scripts/test b/scripts/test index 0e84b22..7e64bf1 100755 --- a/scripts/test +++ b/scripts/test @@ -161,6 +161,15 @@ elif [ "$ARCH" = "loong64" ]; then file apps/openssl/openssl +elif [ "$ARCH" = "riscv64" ]; then + sudo ln -sf /usr/riscv64-linux-gnu/lib/ld-linux-riscv64-lp64d.so.1 /lib/ + setup_cross_compiler riscv64-linux-gnu + + ./configure --host=riscv64-linux-gnu + LD_LIBRARY_PATH=/usr/riscv64-linux-gnu/lib make -j 4 check + + file apps/openssl/openssl + elif [ "$ARCH" = "mips32" ] || [ "$ARCH" = "mips64" ]; then if [ "$ARCH" = "mips32" ]; then sudo ln -sf /usr/mips-linux-gnu/lib/ld.so.1 /lib/ -- cgit v1.2.3-55-g6feb