[github-action] fix coverage uploading for expects (#5423)

This commit changes the coverage data uploading for expects job so
that it only uploads data for one build at a time, to make coverage
more stable.
This commit is contained in:
Moandor
2020-08-19 08:47:29 -07:00
committed by GitHub
parent 2373fcbf01
commit e865281ddc
3 changed files with 28 additions and 10 deletions
+4 -4
View File
@@ -334,7 +334,7 @@ do_package()
do_tar()
{
local target_name="openthread-simulation-$1"
local target_name="openthread-$1-$2"
local build_dir="${OT_BUILDDIR}/cmake"
tar -cf "${target_name}.tar" -C "${build_dir}" "${target_name}"
mv "${target_name}.tar" "${build_dir}/"
@@ -343,7 +343,7 @@ do_tar()
do_untar()
{
local target_name="openthread-simulation-$1"
local target_name="openthread-$1-$2"
local build_dir="${OT_BUILDDIR}/cmake"
tar -xf "${build_dir}/${target_name}.tar" -C "${build_dir}"
rm "${build_dir:?}/${target_name}.tar"
@@ -437,11 +437,11 @@ main()
;;
tar)
shift
do_tar "$1"
do_tar "$@"
;;
untar)
shift
do_untar "$1"
do_untar "$@"
;;
esac
shift