cibuild.sh: Remove bloaty-src and nuttx-tools repo after build

to avoid the below error:
destination path '/Users/runner/work/nuttx/nuttx/sources/tools/bloaty-src' already exists and is not an empty directory.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-13 07:16:13 +08:00 committed by archer
parent 47fbfa215e
commit 4873fec670

View File

@ -156,7 +156,8 @@ function bloaty {
mkdir -p "${tools}"/bloaty
cmake -D BLOATY_PREFER_SYSTEM_CAPSTONE=NO -DCMAKE_SYSTEM_PREFIX_PATH="${tools}"/bloaty
make install -j 6
git clean -xfd
cd "${tools}"
rm -rf bloaty-src
fi
command bloaty --version
@ -249,7 +250,8 @@ function kconfig-frontends {
# Avoid "aclocal/automake missing" errors
touch aclocal.m4 Makefile.in
make install
cd "${tools}"/nuttx-tools; git clean -xfd
cd "${tools}"
rm -rf nuttx-tools
fi
}