Skip to content

Commit 64df62c

Browse files
authored
Merge pull request #107 from Flow-IPC/jobs
GitHub CI pipeline: Parallelize core build step for 2x+ decrease in build time.
2 parents 10da89a + 9c1f777 commit 64df62c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

conanfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# permissions and limitations under the License.
1717

1818
from conan import ConanFile
19+
from conan.tools.build import build_jobs
1920
from conan.tools.cmake import CMake, cmake_layout, CMakeDeps, CMakeToolchain
2021

2122
def load_version_from_file():
@@ -111,9 +112,9 @@ def build(self):
111112

112113
# Cannot use cmake.build(...) because not possible to pass make arguments like --keep-going.
113114
if self.options.build:
114-
self.run("cmake --build . -- --keep-going VERBOSE=1")
115+
self.run(f"cmake --build . -- --keep-going VERBOSE=1 -j{build_jobs(self)}")
115116
if self.options.doc:
116-
self.run("cmake --build . -- flow_doc_public flow_doc_full --keep-going VERBOSE=1")
117+
self.run(f"cmake --build . -- flow_doc_public flow_doc_full --keep-going VERBOSE=1 -j{build_jobs(self)}")
117118

118119
def requirements(self):
119120
if self.options.build:

0 commit comments

Comments
 (0)