Skip to content

Commit c16b78f

Browse files
Limit parallelism to stop failing jobs in CI
CMake 4.4.0 has a bug that causes builds to fail due to a race condition when building tests in parallel. CMake 4.4.1 fixes this, but while we wait for github to update the runners, disable the parallelism in the build for the time being.
1 parent 87a4dcd commit c16b78f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ jobs:
420420
-D BUILD_WERROR=ON `
421421
-D BUILD_TESTS=ON `
422422
-G Ninja
423-
- run: cmake --build build/
423+
- run: cmake --build build/ --parallel 1
424424
- run: ctest --parallel --output-on-failure --test-dir build/
425425
- run: cmake --install build --prefix build/install
426426

@@ -456,7 +456,7 @@ jobs:
456456
env:
457457
# Prevents regression of KhronosGroup/Vulkan-Loader/issues/1332
458458
LDFLAGS: -Wl,-fatal_warnings
459-
- run: cmake --build build
459+
- run: cmake --build build --parallel 1
460460
- run: cmake --install build --prefix /tmp
461461
- run: ctest --parallel --output-on-failure --test-dir build/
462462

@@ -490,7 +490,7 @@ jobs:
490490
-G Ninja
491491
env:
492492
LDFLAGS: -Wl,-fatal_warnings
493-
- run: cmake --build build
493+
- run: cmake --build build --parallel 1
494494
- run: cmake --install build --prefix /tmp
495495
- name: Verify Universal Binary
496496
run: |
@@ -530,7 +530,7 @@ jobs:
530530
-G Ninja
531531
env:
532532
LDFLAGS: -Wl,-fatal_warnings
533-
- run: cmake --build build --config Release
533+
- run: cmake --build build --config Release --parallel 1
534534
- run: ctest --parallel --output-on-failure --build-config Release -E UnknownFunction --test-dir build/
535535
- run: cmake --install build --config Release --prefix /tmp
536536
- name: Verify Universal Binary

0 commit comments

Comments
 (0)