Skip to content

Commit 23da66e

Browse files
committed
[TEST] ci: Reduce parallelism for x86-64 macOS GNU toolchain build
1 parent 7c18cc7 commit 23da66e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,14 @@ jobs:
675675
CT_LOG_LEVEL_MAX="EXTRA"
676676
EOF
677677
678+
# Reduce parallelism to work around the `kern.maxproc` issue when
679+
# building x86-64 macOS toolchain
680+
if [ "${{ matrix.host.name }}" == "macos-x86_64" ]; then
681+
cat <<EOF >> .config
682+
CT_PARALLEL_JOBS=$(($(nproc) / 2))
683+
EOF
684+
fi
685+
678686
# Set Canadian cross compilation configurations
679687
if [ "${{ matrix.host.name }}" == "macos-x86_64" ]; then
680688
# Building for macos-x86_64 on macos-aarch64

0 commit comments

Comments
 (0)