Skip to content

Commit

Permalink
Use the --parallel build option in CI workflows (#2004)
Browse files Browse the repository at this point in the history
Instead of selecting an arbitrary number for the number of parallel
build jobs, use CMake's `--parallel` option instead.

Option was introduced in version 3.12, GitHub runners currently use
CMake version 3.29.6 so this is supported.

Fixes #2003

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
  • Loading branch information
ahesham-arm committed Jul 9, 2024
1 parent 47546a5 commit 1858922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
-DOPENCL_ICD_LOADER_HEADERS_DIR=${TOP}/OpenCL-Headers/
cmake --build . -j2
cmake --build . --parallel

#Vulkan Loader
cd ${TOP}
Expand All @@ -78,7 +78,7 @@ cmake .. -G Ninja \
-DBUILD_WSI_XCB_SUPPORT=OFF \
-DBUILD_WSI_WAYLAND_SUPPORT=OFF \
-C helper.cmake ..
cmake --build . -j2
cmake --build . --parallel

# Build CTS
cd ${TOP}
Expand All @@ -105,4 +105,4 @@ cmake .. -G Ninja \
-DVULKAN_IS_SUPPORTED=${BUILD_VULKAN_TEST} \
-DVULKAN_INCLUDE_DIR=${TOP}/Vulkan-Headers/include/ \
-DVULKAN_LIB_DIR=${TOP}/Vulkan-Loader/build/loader/
cmake --build . -j3
cmake --build . --parallel

0 comments on commit 1858922

Please sign in to comment.