mirror of
https://github.com/alibaba/higress.git
synced 2026-05-23 12:17:30 +08:00
feat: init build-and-test workflows (#124)
Signed-off-by: bitliu <bitliu@tencent.com>
This commit is contained in:
@@ -69,6 +69,7 @@ if [[ -z ${BUILDINFO} ]];then
|
||||
fi
|
||||
|
||||
while read -r line; do
|
||||
echo -e "\n${line}"
|
||||
LD_EXTRAFLAGS="${LD_EXTRAFLAGS} -X ${line}"
|
||||
done < "${BUILDINFO}"
|
||||
|
||||
@@ -77,7 +78,6 @@ if [ "${DEBUG}" == "1" ]; then
|
||||
OPTIMIZATION_FLAGS=()
|
||||
fi
|
||||
|
||||
|
||||
time GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} ${GOBINARY} build \
|
||||
${V} "${GOBUILDFLAGS_ARRAY[@]}" ${GCFLAGS:+-gcflags "${GCFLAGS}"} \
|
||||
-o "${OUT}" \
|
||||
|
||||
@@ -35,7 +35,7 @@ if [[ -z "${IGNORE_DIRTY_TREE}" ]] && ! git diff-index --quiet HEAD --; then
|
||||
tree_status="Modified"
|
||||
fi
|
||||
|
||||
GIT_DESCRIBE_TAG=$(git describe --tags)
|
||||
GIT_DESCRIBE_TAG=$(cat VERSION)
|
||||
HUB=${HUB:-"higress-registry.cn-hangzhou.cr.aliyuncs.com/higress"}
|
||||
|
||||
# used by common/scripts/gobuild.sh
|
||||
|
||||
Reference in New Issue
Block a user