From 6a765a5330d4f660ee2c74df610483eb1335ace0 Mon Sep 17 00:00:00 2001 From: Daniel Pressler Date: Mon, 20 Jan 2025 13:21:47 +0200 Subject: [PATCH] [CI] issue:HPCINFRA-3086 improve deb package build time Signed-off-by: Daniel Pressler --- contrib/jenkins_tests/rpm.sh | 2 +- debian/rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/jenkins_tests/rpm.sh b/contrib/jenkins_tests/rpm.sh index fa08b84ef..250f3729c 100755 --- a/contrib/jenkins_tests/rpm.sh +++ b/contrib/jenkins_tests/rpm.sh @@ -76,7 +76,7 @@ if [ $opt_binrpm -eq 1 ]; then if [ $opt_rpm -eq 1 ]; then test_exec="env RPM_BUILD_NCPUS=${NPROC} rpmbuild -bb --define='configure_options $jenkins_test_custom_configure' $rpmmacros $rpmopts $rpmspec" else - test_exec="env configure_options=\"$jenkins_test_custom_configure\" dpkg-buildpackage -us -uc -b" + test_exec="env configure_options=\"$jenkins_test_custom_configure\" make_opts=\"-j${NPROC}\" dpkg-buildpackage --jobs=$NPROC -us -uc -b" fi do_check_result "$test_exec" "$test_id" "binrpm" "$rpm_tap" "${rpm_dir}/rpm-${test_id}" test_id=$((test_id+1)) diff --git a/debian/rules b/debian/rules index 071b9e366..c9a4d036e 100755 --- a/debian/rules +++ b/debian/rules @@ -16,7 +16,7 @@ build-debug: ./configure --with-ofed=/usr --prefix=/usr \ --libdir=/usr/lib --includedir=/usr/include --sysconfdir=/etc \ --enable-opt-log=none --enable-debug ${configure_options} - make + make ${make_opts} cp -f src/core/.libs/libxlio.so libxlio-debug.so make clean