File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,21 +45,29 @@ mkdir -p "$DIST_DATA_DIR/coord" "$DIST_DATA_DIR/data1" "$DIST_DATA_DIR/data2"
4545# Ensure build directory exists
4646mkdir -p " $BUILD_DIR "
4747
48- # Detect CPU count for parallel build
49- if command -v nproc > /dev/null 2>&1 ; then
50- CPU_COUNT=$( nproc)
51- elif command -v sysctl > /dev/null 2>&1 ; then
52- CPU_COUNT=$( sysctl -n hw.ncpu)
53- else
54- CPU_COUNT=1
55- fi
48+ # Skip build if binary exists (useful for CI)
49+ if [ ! -f " $BUILD_DIR /cloudSQL" ]; then
50+ # Detect CPU count for parallel build
51+ if command -v nproc > /dev/null 2>&1 ; then
52+ CPU_COUNT=$( nproc)
53+ elif command -v sysctl > /dev/null 2>&1 ; then
54+ CPU_COUNT=$( sysctl -n hw.ncpu)
55+ else
56+ CPU_COUNT=1
57+ fi
5658
57- echo " --- Building Engine ---"
58- cd " $BUILD_DIR " || exit 1
59- cmake -DBUILD_COVERAGE=OFF ..
60- make -j" $CPU_COUNT "
59+ echo " --- Building Engine ---"
60+ cd " $BUILD_DIR " || exit 1
61+ cmake -DBUILD_COVERAGE=OFF ..
62+ if command -v ninja > /dev/null 2>&1 ; then
63+ ninja
64+ else
65+ make -j" $CPU_COUNT "
66+ fi
67+ fi
6168
6269echo " --- Launching Cluster ---"
70+ cd " $BUILD_DIR " || exit 1
6371
6472# 1. Start Data Node 1
6573echo " Starting Data Node 1 on port 5441..."
You can’t perform that action at this time.
0 commit comments