Skip to content

Commit

Permalink
ci/azure: unify the way to set parallel build, report the core count,…
Browse files Browse the repository at this point in the history
… overload cores
  • Loading branch information
illwieckz committed Apr 21, 2024
1 parent 2e02481 commit ea18aea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions azure-pipelines.yml
Expand Up @@ -9,8 +9,10 @@ jobs:
set -xe
git submodule update --init --recursive
cmake --version
sysctl -n hw.logicalcpu
export CMAKE_BUILD_PARALLEL_LEVEL=$(($(sysctl -n hw.logicalcpu) + 2))
cmake -Wdev -Wdeprecated -DUSE_PRECOMPILED_HEADER=0 -DUSE_WERROR=1 -DBE_VERBOSE=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_DUMMY_APP=1 -DBUILD_TESTS=1 -H. -Bbuild
cmake --build build -- -j`sysctl -n hw.logicalcpu`
cmake --build build
displayName: 'Build'
- bash: |
set -xe
Expand Down Expand Up @@ -53,8 +55,10 @@ jobs:
set -xe
git submodule update --init --recursive
cmake --version
nproc
export CMAKE_BUILD_PARALLEL_LEVEL=$(($(nproc) + 2))
cmake -G "Ninja" -Wdev -Wdeprecated -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) -DCMAKE_C_COMPILER=$(C_COMPILER) -DCMAKE_CXX_COMPILER=$(CXX_COMPILER) -DUSE_PRECOMPILED_HEADER=0 -DUSE_WERROR=1 -DBE_VERBOSE=1 -DBUILD_DUMMY_APP=1 -DBUILD_TESTS=1 -DCMAKE_BUILD_TYPE=Release -H. -Bbuild
cmake --build build -- -j`nproc`
cmake --build build
displayName: 'Build'
- bash: |
set -xe
Expand Down

0 comments on commit ea18aea

Please sign in to comment.