File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ jobs:
109109 fi
110110 echo "VERSION=${version}"
111111 echo "RC=${rc}"
112+ if [[ "${{ runner.os }}" == "macOS" ]]; then
113+ echo "macOS runner detected. Setting parallelism to 2."
114+ export CMAKE_BUILD_PARALLEL_LEVEL=2
115+ fi
112116 # The verify_rc.sh script will untar and
113117 # run cmake, build, tests (ctest) and install
114118 VERIFY_SIGN=0 VERIFY_DOWNLOAD=0 dev/release/verify_rc.sh "${version}" "${rc}"
Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ ensure_source_directory() {
115115
116116test_source_distribution () {
117117 echo " Building and testing Apache Iceberg C++..."
118+ PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL:- $(nproc || sysctl -n hw.ncpu || echo 4)}
119+ echo " Using parallelism level: ${PARALLEL_LEVEL} "
118120
119121 # Configure build
120122 cmake -S . -B build \
@@ -123,10 +125,10 @@ test_source_distribution() {
123125 -DICEBERG_BUILD_SHARED=ON
124126
125127 # Build
126- cmake --build build --parallel $( nproc || sysctl -n hw.ncpu || echo 4 )
128+ cmake --build build --parallel " ${PARALLEL_LEVEL} "
127129
128130 # Run tests
129- ctest --test-dir build --output-on-failure --parallel $( nproc || sysctl -n hw.ncpu || echo 4 )
131+ ctest --test-dir build --output-on-failure --parallel " ${PARALLEL_LEVEL} "
130132
131133 # Install
132134 mkdir -p ./install_test
You can’t perform that action at this time.
0 commit comments