Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use CMAKE_BUILD_PARALLEL_LEVEL with 8 by default #625

Merged
merged 2 commits into from
Oct 27, 2020

Conversation

chfast
Copy link
Collaborator

@chfast chfast commented Oct 26, 2020

The env var CMAKE_BUILD_PARALLEL_LEVEL sets the parallel level of cmake --build.
This default value 8 can be overwritten by setting CMAKE_BUILD_PARALLEL_LEVEL at job level. This is done for sanitizers-gcc to set value 6.

The env var CMAKE_BUILD_PARALLEL_LEVEL sets the parallel level of
cmake --build.
@chfast chfast requested review from axic and gumb0 October 26, 2020 15:57
@codecov
Copy link

codecov bot commented Oct 26, 2020

Codecov Report

Merging #625 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #625   +/-   ##
=======================================
  Coverage   98.32%   98.32%           
=======================================
  Files          67       67           
  Lines        9429     9429           
=======================================
  Hits         9271     9271           
  Misses        158      158           

@chfast chfast marked this pull request as ready for review October 27, 2020 11:05
@@ -118,7 +118,9 @@ commands:
- ~/.hunter/_Base/Cache
- run:
name: "Build <<parameters.configuration_name>> (<<parameters.build_type>>)"
command: cmake --build ~/build --target <<parameters.target>> -- -j6
command: |
export CMAKE_BUILD_PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL:-8}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The :-8 part means it defaults to 8 if not set?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@chfast chfast merged commit 50091b8 into master Oct 27, 2020
@chfast chfast deleted the ci_build_parallel_level branch October 27, 2020 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants