mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Use Cirrus's new greedy mode for parallelizing builds and tests
This oversubscribes our cores 2x, which testing shows we actually run with at times: speedup is around a third on average for builds, and a bit more than that for testing. Also some light Bashification in ci/build.sh, for consistency.
This commit is contained in:
parent
d8b0ee0853
commit
959de22349
4 changed files with 22 additions and 2 deletions
12
ci/common.sh
Normal file
12
ci/common.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Common material sourced by Bash CI scripts in this directory
|
||||
|
||||
# On Cirrus, oversubscribe the CPUs when on Linux. This uses Cirrus' "greedy" feature.
|
||||
if [[ "${CIRRUS_OS}" == linux ]]; then
|
||||
if [[ -n "${ZEEK_CI_CPUS}" ]]; then
|
||||
ZEEK_CI_CPUS=$(( 2 * ${ZEEK_CI_CPUS} ))
|
||||
fi
|
||||
|
||||
if [[ -n "${ZEEK_CI_BTEST_JOBS}" ]]; then
|
||||
ZEEK_CI_BTEST_JOBS=$(( 2 * ${ZEEK_CI_BTEST_JOBS} ))
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue