Skip to content

Commit bd91a9a

Browse files
committed
Revert "ci: remove explicit thread-count from -j options"
This reverts commit 3952afc.
1 parent 3952afc commit bd91a9a

File tree

3 files changed

+31
-17
lines changed

3 files changed

+31
-17
lines changed

.github/workflows/build.yml

+28-14
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ jobs:
376376
if: ${{ steps.config-basic.outcome == 'success' }}
377377
shell: bash
378378
run: |
379-
cmake --build build -j ${{ env.CMAKE_BUILD_EXTRA }}
379+
cmake --build build \
380+
-j5 \
381+
${{ env.CMAKE_BUILD_EXTRA }}
380382
381383
- name: Run Basic Framework tests
382384
if: ${{ steps.config-basic.outcome == 'success' }}
@@ -386,7 +388,7 @@ jobs:
386388
run: |
387389
ctest --test-dir build \
388390
-C ${{ matrix.build_mode }} \
389-
-j
391+
-j5
390392
#
391393
#################################
392394

@@ -404,7 +406,9 @@ jobs:
404406
- name: Build with fmt formatting-backend
405407
shell: bash
406408
run: |
407-
cmake --build build -j ${{ env.CMAKE_BUILD_EXTRA }}
409+
cmake --build build \
410+
-j5 \
411+
${{ env.CMAKE_BUILD_EXTRA }}
408412
409413
- name: Run tests with fmt formatting-backend
410414
shell: bash
@@ -413,7 +417,7 @@ jobs:
413417
run: |
414418
ctest --test-dir build \
415419
-C ${{ matrix.build_mode }} \
416-
-j
420+
-j5
417421
#
418422
#################################
419423

@@ -432,7 +436,9 @@ jobs:
432436
- name: Build with minimal pretty type-printing
433437
shell: bash
434438
run: |
435-
cmake --build build -j ${{ env.CMAKE_BUILD_EXTRA }}
439+
cmake --build build \
440+
-j5 \
441+
${{ env.CMAKE_BUILD_EXTRA }}
436442
437443
- name: Run tests with minimal pretty type-printing
438444
shell: bash
@@ -441,7 +447,7 @@ jobs:
441447
run: |
442448
ctest --test-dir build \
443449
-C ${{ matrix.build_mode }} \
444-
-j
450+
-j5
445451
#
446452
#################################
447453

@@ -460,7 +466,9 @@ jobs:
460466
- name: Build with unicode string-matchers
461467
shell: bash
462468
run: |
463-
cmake --build build -j ${{ env.CMAKE_BUILD_EXTRA }}
469+
cmake --build build \
470+
-j5 \
471+
${{ env.CMAKE_BUILD_EXTRA }}
464472
465473
- name: Run tests unicode string-matchers
466474
shell: bash
@@ -469,7 +477,7 @@ jobs:
469477
run: |
470478
ctest --test-dir build \
471479
-C ${{ matrix.build_mode }} \
472-
-j
480+
-j5
473481
#
474482
#################################
475483

@@ -491,7 +499,9 @@ jobs:
491499
if: ${{ steps.config-cxx23-stacktrace.outcome == 'success' }}
492500
shell: bash
493501
run: |
494-
cmake --build build -j ${{ env.CMAKE_BUILD_EXTRA }}
502+
cmake --build build \
503+
-j5 \
504+
${{ env.CMAKE_BUILD_EXTRA }}
495505
496506
- name: Run tests with std::stacktrace backend
497507
if: ${{ steps.config-cxx23-stacktrace.outcome == 'success' }}
@@ -501,7 +511,7 @@ jobs:
501511
run: |
502512
ctest --test-dir build \
503513
-C ${{ matrix.build_mode }} \
504-
-j
514+
-j5
505515
506516
# cpptrace
507517
- name: Configure with cpptrace backend
@@ -518,7 +528,9 @@ jobs:
518528
- name: Build with cpptrace backend
519529
shell: bash
520530
run: |
521-
cmake --build build -j ${{ env.CMAKE_BUILD_EXTRA }}
531+
cmake --build build \
532+
-j5 \
533+
${{ env.CMAKE_BUILD_EXTRA }}
522534
523535
- name: Run tests with cpptrace backend
524536
shell: bash
@@ -527,7 +539,7 @@ jobs:
527539
run: |
528540
ctest --test-dir build \
529541
-C ${{ matrix.build_mode }} \
530-
-j
542+
-j5
531543
#
532544
#################################
533545

@@ -552,7 +564,9 @@ jobs:
552564
if: ${{ steps.config-adapter-test.outcome == 'success' }}
553565
shell: bash
554566
run: |
555-
cmake --build build -j ${{ env.CMAKE_BUILD_EXTRA }}
567+
cmake --build build \
568+
-j5 \
569+
${{ env.CMAKE_BUILD_EXTRA }}
556570
557571
- name: Run adapter tests
558572
if: ${{ steps.config-adapter-test.outcome == 'success' }}
@@ -562,6 +576,6 @@ jobs:
562576
run: |
563577
ctest --test-dir build/test/adapter-tests \
564578
-C ${{ matrix.build_mode }} \
565-
-j
579+
-j5
566580
#
567581
#################################

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
-D MIMICPP_CONFIG_EXPERIMENTAL_USE_CPPTRACE=YES
7373
7474
- name: Build
75-
run: cmake --build build -j
75+
run: cmake --build build -j4
7676

7777
- name: Perform CodeQL Analysis
7878
uses: github/codeql-action/analyze@v3

.github/workflows/coverage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Build
5757
run: |
58-
cmake --build build -j
58+
cmake --build build -j5
5959
6060
- name: Run tests
6161
shell: bash
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
ctest --test-dir build \
6666
-C Debug \
67-
-j
67+
-j4
6868
6969
- name: Run gcovr
7070
run: |

0 commit comments

Comments
 (0)