CircleCI: clarify AVAILABLE_MEM_GB=8 usage, which results in CircleCI passing: -j8 --load-average=12 from current Makefile helper

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
Thierry Laurion 2025-03-10 17:01:04 -04:00
parent 382949d8f4
commit 25ffc3e59c
No known key found for this signature in database
GPG Key ID: 9A53E1BB3FF00461

View File

@ -16,7 +16,9 @@ commands:
echo "Sourcing /devenv.sh since docker entrypoint doesn't do it as expected"
source /devenv.sh
rm -rf build/<< parameters.arch >>/<< parameters.target >>/* build/<< parameters.arch >>/log/*
#Force -j8 so that each make subtask consumes 1gb max and force respect of minimal requirements of CircleCI which otherwise randomly fails
#Pass AVAILABLE_MEM_GB=8 to respect CircleCI free tier RAM assignation, which otherwise randomly fails. See Makefile calculations.
# Without AVAILABLE_MEM_GB=8: CircleCI passes '-j36 --load-average=54'
# With AVAILABLE_MEM_GB=8: CircleCI passes '-j8 --load-average=12'
make V=1 BOARD=<< parameters.target >> << parameters.subcommand >> AVAILABLE_MEM_GB=8 | ts || touch ./tmpDir/failed_build
no_output_timeout: 3h
- run: