From b4a2d7754a8b74776390594605a7b8c118f8ae11 Mon Sep 17 00:00:00 2001 From: Kuan-Wei Chiu Date: Sat, 14 Sep 2024 22:32:49 +0800 Subject: [PATCH] CI: Enable parallel compilation in default build and gdbstub tests Parallel compilation with -j$(nproc) is introduced to the default build and gdbstub tests. By utilizing all available CPU cores, this change improves the speed of the build and testing process, reducing CI execution time. --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b628c262..c7b3ef7d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,7 +49,7 @@ jobs: sudo ./llvm.sh 17 shell: bash - name: default build - run: make + run: make -j$(nproc) - name: check + tests run: | make check -j$(nproc) @@ -65,7 +65,7 @@ jobs: make distclean && make ENABLE_SDL=0 check -j$(nproc) - name: gdbstub test run: | - make distclean ENABLE_GDBSTUB=1 gdbstub-test + make distclean && make ENABLE_GDBSTUB=1 gdbstub-test -j$(nproc) - name: JIT test run: | make ENABLE_JIT=1 clean && make ENABLE_JIT=1 check -j$(nproc)