Skip to content

Commit 7eddceb

Browse files
Run github actions ctest in parallel
1 parent fb7877c commit 7eddceb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
-D CMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} \
7373
-D CMAKE_C_COMPILER=${{ matrix.compiler.cc }}
7474
- run: cmake --build build
75-
- run: ctest --output-on-failure --test-dir build/
75+
- run: ctest --parallel --output-on-failure --test-dir build/
7676
- run: cmake --install build --prefix /tmp
7777

7878
codegen:
@@ -100,7 +100,7 @@ jobs:
100100
-D CMAKE_CXX_COMPILER=clang++
101101
- run: cmake --build build
102102
- run: cmake --install build --prefix /tmp
103-
- run: ctest --output-on-failure -E UnknownFunction --test-dir build/
103+
- run: ctest --parallel --output-on-failure -E UnknownFunction --test-dir build/
104104

105105
linux-32:
106106
needs: codegen
@@ -138,7 +138,7 @@ jobs:
138138
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
139139
- run: cmake --build build
140140
- run: cmake --install build --prefix /tmp
141-
- run: ctest --output-on-failure --test-dir build/
141+
- run: ctest --parallel --output-on-failure --test-dir build/
142142

143143
linux-32-no-asm:
144144
needs: codegen
@@ -172,7 +172,7 @@ jobs:
172172
# https://gitlab.kitware.com/cmake/cmake/-/issues/25317
173173
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
174174
- run: cmake --build build
175-
- run: ctest --output-on-failure -E UnknownFunction --test-dir build/
175+
- run: ctest --parallel --output-on-failure -E UnknownFunction --test-dir build/
176176

177177
windows_vs:
178178
# windows is 2x expensive to run on GitHub machines, so only run if we know something else simple passed as well
@@ -193,7 +193,7 @@ jobs:
193193
-D BUILD_WERROR=ON
194194
- run: cmake --build build/ --config ${{matrix.config}}
195195
- run: cmake --install build --prefix build/install --config ${{matrix.config}}
196-
- run: ctest --output-on-failure -C ${{matrix.config}} --test-dir build/
196+
- run: ctest --parallel --output-on-failure -C ${{matrix.config}} --test-dir build/
197197

198198
windows_vs-no-asm:
199199
# windows is 2x expensive to run on GitHub machines, so only run if we know something else simple passed as well
@@ -213,7 +213,7 @@ jobs:
213213
-A ${{ matrix.arch }} `
214214
-D BUILD_WERROR=ON
215215
- run: cmake --build build/ --config Release
216-
- run: ctest --output-on-failure -C Release -E UnknownFunction --test-dir build/
216+
- run: ctest --parallel --output-on-failure -C Release -E UnknownFunction --test-dir build/
217217

218218
# Test both clang and clang-cl (Chromium project uses clang-cl)
219219
windows_clang:
@@ -237,7 +237,7 @@ jobs:
237237
-D BUILD_TESTS=ON `
238238
-G Ninja
239239
- run: cmake --build build/
240-
- run: ctest --output-on-failure --test-dir build/
240+
- run: ctest --parallel --output-on-failure --test-dir build/
241241
- run: cmake --install build --prefix build/install
242242

243243
mac:
@@ -268,7 +268,7 @@ jobs:
268268
LDFLAGS: -Wl,-fatal_warnings
269269
- run: cmake --build build
270270
- run: cmake --install build --prefix /tmp
271-
- run: ctest --output-on-failure --test-dir build/
271+
- run: ctest --parallel --output-on-failure --test-dir build/
272272

273273
apple-cross-compile:
274274
# Mac is 10x expensive to run on GitHub machines, so only run if we know something else passed as well
@@ -330,7 +330,7 @@ jobs:
330330
env:
331331
LDFLAGS: -Wl,-fatal_warnings
332332
- run: cmake --build build --config Release
333-
- run: ctest --output-on-failure --build-config Release -E UnknownFunction --test-dir build/
333+
- run: ctest --parallel --output-on-failure --build-config Release -E UnknownFunction --test-dir build/
334334
- run: cmake --install build --config Release --prefix /tmp
335335
- name: Verify Universal Binary
336336
if: ${{ matrix.static == 'OFF' }}

0 commit comments

Comments
 (0)