Skip to content

Commit

Permalink
.cirrus.yml: set parallelism to number of CPUs.
Browse files Browse the repository at this point in the history
  • Loading branch information
octo committed Nov 26, 2023
1 parent 6c5db5d commit eb02259
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ release_ready_task:
- ./build.sh
- ./configure $DEFAULT_CONFIG_OPTS
checks_script:
- make -j2 -s distcheck DISTCHECK_CONFIGURE_FLAGS="${DEFAULT_CONFIG_OPTS}"
- make -j$(nproc) -s distcheck DISTCHECK_CONFIGURE_FLAGS="${DEFAULT_CONFIG_OPTS}"

###
# Default toolchain and build flags used in deb packages, on a range of Debian
Expand Down Expand Up @@ -46,9 +46,9 @@ debian_default_toolchain_task:
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- make -j2 -sk
- make -j$(nproc) -sk
tests_script:
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check || cat ./test-suite.log || false
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check || cat ./test-suite.log || false
- /checks/check-built-plugins.sh

###
Expand Down Expand Up @@ -77,9 +77,9 @@ redhat_default_toolchain_task:
- gcc --version
- ./configure CC=gcc $DEFAULT_CONFIG_OPTS CFLAGS="$(rpm --eval '%optflags')"
build_script:
- make -j2 -sk
- make -j$(nproc) -sk
tests_script:
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check || cat ./test-suite.log || false
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check || cat ./test-suite.log || false
- /checks/check-built-plugins.sh


Expand Down Expand Up @@ -109,9 +109,9 @@ non_standard_toolchains_task:
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- make -j2 -sk
- make -j$(nproc) -sk
tests_script:
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check || cat ./test-suite.log || false
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check || cat ./test-suite.log || false

# build against libstatgrab, should always pass
- env:
Expand All @@ -127,7 +127,7 @@ non_standard_toolchains_task:
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- make -j2 -sk
- make -j$(nproc) -sk
tests_script:
- >
for i in cpu disk interface load memory swap users; do
Expand Down Expand Up @@ -174,9 +174,9 @@ non_standard_toolchains_task:
-Wno-typedef-redefinition
-Wno-gnu-variable-sized-type-not-at-end'
build_script:
- make -j2 -sk
- make -j$(nproc) -sk
tests_script:
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check || cat ./test-suite.log || false
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check || cat ./test-suite.log || false

###
# Build using a range of compilers, available in debian/unstable. NB: might
Expand Down Expand Up @@ -206,9 +206,9 @@ bleeding_edge_compilers_task:
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- make -j2 -sk
- make -j$(nproc) -sk
tests_script:
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check || cat ./test-suite.log || false
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check || cat ./test-suite.log || false

freebsd_task:
freebsd_instance:
Expand All @@ -228,4 +228,4 @@ freebsd_task:
build_script:
- make -j$(nproc) -sk
tests_script:
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check || cat ./test-suite.log && false
- VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check || cat ./test-suite.log && false

0 comments on commit eb02259

Please sign in to comment.