feat: init build-and-test workflows (#124)

Signed-off-by: bitliu <bitliu@tencent.com>
This commit is contained in:
Xunzhuo
2023-01-17 13:56:48 +08:00
committed by GitHub
parent 7c5542802b
commit 0bf395a423
9 changed files with 88 additions and 42 deletions

View File

@@ -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}" \

View File

@@ -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