Skip to content

Commit

Permalink
try grouping 5
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Jul 13, 2024
1 parent 271824b commit f18d4fb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -467,6 +469,8 @@ fi

_ori_path="${PATH}"

echo '::endgroup::'

bld() {
echo "::group::${_CPU} $1"

Expand Down Expand Up @@ -503,6 +507,9 @@ bld() {
}

build_single_target() {

echo "::group::$1"

export _CPU="$1"
export _CC="${_CONFCC}"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1772,6 +1783,8 @@ case "${_HOST}" in
esac
rm -f "${SIGN_CODE_KEY}"

echo '::endgroup::'

# Upload/deploy binaries
. ./_ul.sh

Expand Down
4 changes: 4 additions & 0 deletions _ul.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down Expand Up @@ -113,3 +115,5 @@ EOF
esac
rm -f "${DEPLOY_KEY}"
fi

echo '::endgroup::'

0 comments on commit f18d4fb

Please sign in to comment.