From 14d2d28dd791284f26a6b60607163c83028588c3 Mon Sep 17 00:00:00 2001 From: ChinYikMing Date: Sun, 19 Jan 2025 14:57:36 +0800 Subject: [PATCH] CI: Enable parallel build for riscv-tests.sh --- .ci/riscv-tests.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.ci/riscv-tests.sh b/.ci/riscv-tests.sh index 14936fea..ac1a4441 100755 --- a/.ci/riscv-tests.sh +++ b/.ci/riscv-tests.sh @@ -9,6 +9,8 @@ set -x export PATH=`pwd`/toolchain/bin:$PATH +PARALLEL=-j$(nproc) + make distclean # Rebuild with all RISC-V extensions # FIXME: To pass the RISC-V Architecture Tests, full access to 4 GiB is @@ -16,7 +18,7 @@ make distclean # for this purpose, although the emulator can run all selected benchmarks with # much smaller memory mapping regions. make ENABLE_EXT_M=1 ENABLE_EXT_A=1 ENABLE_EXT_F=1 ENABLE_EXT_C=1 \ - ENABLE_Zicsr=1 ENABLE_Zifencei=1 ENABLE_FULL4G=1 -make arch-test RISCV_DEVICE=IMAFCZicsrZifencei || exit 1 -make arch-test RISCV_DEVICE=FCZicsr || exit 1 -make arch-test RISCV_DEVICE=IMZbaZbbZbcZbs || exit 1 + ENABLE_Zicsr=1 ENABLE_Zifencei=1 ENABLE_FULL4G=1 $PARALLEL +make arch-test RISCV_DEVICE=IMAFCZicsrZifencei $PARALLEL || exit 1 +make arch-test RISCV_DEVICE=FCZicsr $PARALLEL || exit 1 +make arch-test RISCV_DEVICE=IMZbaZbbZbcZbs $PARALLEL || exit 1