1
0
woodpecker-sonatype-nexus/.ci/build-all.sh
Konstantin Demin 64e680f0fc
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci: introduce
2024-02-25 17:12:47 +03:00

28 lines
511 B
Bash
Executable File

#!/bin/sh
set -ef
[ -z "${CI_DEBUG}" ] || set -xv
TARGET_PLATFORMS=$(printf '%s' "${TARGET_PLATFORMS:?}" | tr ',' ' ')
for TARGET_PLATFORM in ${TARGET_PLATFORMS} ; do
r=0
[ -n "${TARGET_PLATFORM}" ] || r=1
[ "$r" = 0 ] || break
export TARGET_PLATFORM
.ci/env.sh || r=$?
[ "$r" = 0 ] || break
head -n 40 .build_env
. ./.build_env
[ -n "${GOARCH}" ] || r=1
[ "$r" = 0 ] || break
.ci/build.sh || r=$?
[ "$r" = 0 ] || break
done
.ci/build-cleanup.sh
exit "$r"