From f18d4fb1a1ae983ebc20a2bd806fd276e3c23dcc Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 13 Jul 2024 23:41:24 +0200 Subject: [PATCH] try grouping 5 --- _build.sh | 13 +++++++++++++ _ul.sh | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/_build.sh b/_build.sh index 827765f05..09f602ddb 100755 --- a/_build.sh +++ b/_build.sh @@ -186,6 +186,8 @@ set -o xtrace -o errexit -o nounset; [ -n "${BASH:-}${ZSH_NAME:-}" ] && set -o p # curl cmake-unity # trurl gnumake +echo '::group::init' + cd "$(dirname "$0")" export LC_ALL=C @@ -467,6 +469,8 @@ fi _ori_path="${PATH}" +echo '::endgroup::' + bld() { echo "::group::${_CPU} $1" @@ -503,6 +507,9 @@ bld() { } build_single_target() { + + echo "::group::$1" + export _CPU="$1" export _CC="${_CONFCC}" @@ -1707,8 +1714,12 @@ EOF ./_pkg.sh "${_ref}" 'unified' fi + + echo '::endgroup::' } +echo '::group::build' + # Build binaries if [ "${_OS}" = 'win' ]; then if [[ "${_CONFIG}" = *'x64'* || ! "${_CONFIG}" =~ (a64|x86) ]]; then @@ -1772,6 +1783,8 @@ case "${_HOST}" in esac rm -f "${SIGN_CODE_KEY}" +echo '::endgroup::' + # Upload/deploy binaries . ./_ul.sh diff --git a/_ul.sh b/_ul.sh index 60df99a7a..51248300f 100755 --- a/_ul.sh +++ b/_ul.sh @@ -6,6 +6,8 @@ # shellcheck disable=SC3040,SC2039 set -o errexit -o nounset; [ -n "${BASH:-}${ZSH_NAME:-}" ] && set -o pipefail +echo '::group::upload' + sort -u "${_BLD}" > "${_BLD}.sorted" mv -f "${_BLD}.sorted" "${_BLD}" @@ -113,3 +115,5 @@ EOF esac rm -f "${DEPLOY_KEY}" fi + +echo '::endgroup::'