CI: Improved speed to build nuttx on MSYS2 job

After MSYS2 updated the package on GitHub
there was a slowdown in building NuttX in the MSYS2 job.

It went from an average of 6 minutes to 10 minutes !!!

The purpose of this PR is to speed up the build to decrease the usage of the Windows runner.

Modified Files
tools/ci/cibuild.sh

tools/sethost.sh

make olddefconfig -j 4 -> make olddefconfig
workaround for remove
  Cleaning...
  Configuring...
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.

Signed-off-by: simbit18 <simbit18@gmail.com>
This commit is contained in:
simbit18 2025-03-25 12:03:43 +01:00 committed by Xiang Xiao
parent 3844b43afe
commit d7681cc815
2 changed files with 6 additions and 6 deletions

View File

@ -20,10 +20,10 @@
# under the License.
#
############################################################################
set -e
set -o xtrace
CID=$(cd "$(dirname "$0")" && pwd)
CIWORKSPACE=$(cd "${CID}"/../../../ && pwd -P)
CIPLAT=${CIWORKSPACE}/nuttx/tools/ci/platforms
@ -144,11 +144,7 @@ function run_builds {
ncpus=$(grep -c ^processor /proc/cpuinfo)
fi
if [ "X$osname" == "Xmsys2" ]; then
export MAKEFLAGS="-j"
else
options+="-j ${ncpus}"
fi
for build in "${builds[@]}"; do
"${nuttx}"/tools/testbuild.sh ${options} -e "-Wno-cpp -Werror" "${build}"

View File

@ -228,4 +228,8 @@ fi
echo " Refreshing..."
if [ "X$wenv" == "Xmsys" ]; then
${MAKECMD} olddefconfig || { echo "ERROR: failed to refresh"; exit 1; }
else
${MAKECMD} olddefconfig $* || { echo "ERROR: failed to refresh"; exit 1; }
fi