mirror of
https://github.com/apache/nuttx.git
synced 2025-05-08 22:32:04 +08:00
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:
parent
3844b43afe
commit
d7681cc815
@ -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}"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user