Skip to content

Commit b450906

Browse files
committed
modify parallel
1 parent 941f6dd commit b450906

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/rc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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}"

dev/release/verify_rc.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ ensure_source_directory() {
115115

116116
test_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

0 commit comments

Comments
 (0)