Limit the number of concurrent jobs to 16 in Cirrus CI builds

Using 64 of them just crashes, probably due to running out of RAM.
This commit is contained in:
Vadim Zeitlin 2022-12-31 01:25:47 +01:00
parent 120e8f5395
commit ec03139362

View file

@ -26,6 +26,12 @@ task:
echo LD_LIBRARY_PATH=`pwd`/lib >> $CIRRUS_ENV echo LD_LIBRARY_PATH=`pwd`/lib >> $CIRRUS_ENV
wxPROC_COUNT=`./build/tools/proc_count.sh` wxPROC_COUNT=`./build/tools/proc_count.sh`
# ARM systems have 64 CPUs but run out of memory and crash when using that
# many jobs, so limit them to something reasonable.
if [ $wxPROC_COUNT -gt 16 ]; then
wxPROC_COUNT=16
fi
echo wxBUILD_ARGS=-j$wxPROC_COUNT >> $CIRRUS_ENV echo wxBUILD_ARGS=-j$wxPROC_COUNT >> $CIRRUS_ENV
WX_EXTRA_PACKAGES='ccache git' WX_EXTRA_PACKAGES='ccache git'