aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-08-13 15:34:00 +0900
committerKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-08-13 17:05:27 +0900
commit5630baeb4d32dbfc4461cf5a3475b701cdfb1d18 (patch)
treee2a4ff92e62edaeffe7cd393d5ee6782e6ea48a9
parent239c0012901752dc3abbd7f78d0ece3d731cc19c (diff)
downloadportable-5630baeb4d32dbfc4461cf5a3475b701cdfb1d18.tar.gz
portable-5630baeb4d32dbfc4461cf5a3475b701cdfb1d18.tar.bz2
portable-5630baeb4d32dbfc4461cf5a3475b701cdfb1d18.zip
ci: run CTest in parallel
Run CTest with parallel jobs in the Windows, Emscripten, Fedora, and shared test-script paths to reduce test time.
-rw-r--r--.github/workflows/emscripten.yml4
-rw-r--r--.github/workflows/fedora-rawhide.yml2
-rw-r--r--.github/workflows/windows.yml2
-rwxr-xr-xscripts/test1
4 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml
index 6087aba..914446b 100644
--- a/.github/workflows/emscripten.yml
+++ b/.github/workflows/emscripten.yml
@@ -43,7 +43,7 @@ jobs:
43 run: cmake --build build --config Release --parallel 4 43 run: cmake --build build --config Release --parallel 4
44 44
45 - name: "Test" 45 - name: "Test"
46 run: ctest --test-dir build -C Release --output-on-failure 46 run: ctest --test-dir build -C Release --parallel --output-on-failure
47 47
48 # Test ASAN with and without ASM enabled. 48 # Test ASAN with and without ASM enabled.
49 test-asan: 49 test-asan:
@@ -80,4 +80,4 @@ jobs:
80 run: cmake --build build --config Release --parallel 4 80 run: cmake --build build --config Release --parallel 4
81 81
82 - name: "Test" 82 - name: "Test"
83 run: ctest --test-dir build -C Release --output-on-failure 83 run: ctest --test-dir build -C Release --parallel --output-on-failure
diff --git a/.github/workflows/fedora-rawhide.yml b/.github/workflows/fedora-rawhide.yml
index 078bc02..c3dd8a8 100644
--- a/.github/workflows/fedora-rawhide.yml
+++ b/.github/workflows/fedora-rawhide.yml
@@ -37,4 +37,4 @@ jobs:
37 ninja 37 ninja
38 - name: Test 38 - name: Test
39 run: | 39 run: |
40 ninja test 40 CTEST_PARALLEL_LEVEL="" ninja test
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 729ff46..908e081 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -88,7 +88,7 @@ jobs:
88 88
89 - name: "Test" 89 - name: "Test"
90 shell: cmd 90 shell: cmd
91 run: ctest --test-dir build -C Release --output-on-failure 91 run: ctest --test-dir build -C Release --parallel --output-on-failure
92 92
93 - name: "Upload build artifacts" 93 - name: "Upload build artifacts"
94 if: always() 94 if: always()
diff --git a/scripts/test b/scripts/test
index 0e84b22..6b51b1e 100755
--- a/scripts/test
+++ b/scripts/test
@@ -11,6 +11,7 @@ if [ "$ARCH" = "mingw32" -o "$ARCH" = "mingw64" -o "$ARCH" = "arm32" ]; then
11fi 11fi
12 12
13ENABLE_ASM="${ENABLE_ASM:=ON}" 13ENABLE_ASM="${ENABLE_ASM:=ON}"
14export CTEST_PARALLEL_LEVEL="${CTEST_PARALLEL_LEVEL-}"
14 15
15# setup_cross_compiler sets up environment variables for cross-compilation with the given prefix. 16# setup_cross_compiler sets up environment variables for cross-compilation with the given prefix.
16setup_cross_compiler() { 17setup_cross_compiler() {