mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
tools/testbuild.sh: added store compilation artifacts for cmake
Added the ability to store compilation artifacts for cmake after a job.
This commit is contained in:
parent
cd4fdf27c5
commit
c4efab7eea
1 changed files with 9 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ fi
|
|||
cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
|
||||
|
||||
function exportandimport {
|
||||
# Do nothing until we finish to build the nuttx
|
||||
# Do nothing until we finish to build the nuttx.
|
||||
if [ ! -f nuttx ]; then
|
||||
return $fail
|
||||
fi
|
||||
|
|
@ -387,6 +387,14 @@ function build_cmake {
|
|||
fail=1
|
||||
fi
|
||||
|
||||
if [ ${SAVEARTIFACTS} -eq 1 ]; then
|
||||
artifactconfigdir=$ARTIFACTDIR/$(echo $config | sed "s/:/\//")/
|
||||
mkdir -p $artifactconfigdir
|
||||
cd $nuttx/build
|
||||
xargs -I "{}" cp "{}" $artifactconfigdir < $nuttx/build/nuttx.manifest
|
||||
cd $nuttx
|
||||
fi
|
||||
|
||||
return $fail
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue