From 9942c2237d47da1d0f326be79d9143968aca5ff5 Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Sat, 7 Dec 2024 11:50:25 +0800 Subject: [PATCH] Revert "Support ldflags building multi binaries (#178)" (#179) This reverts commit d4bf7aa611bafbd75ca1bfdb86c7c66a479b3b2d. --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index e899e4e..2acfdf0 100755 --- a/release.sh +++ b/release.sh @@ -123,7 +123,7 @@ if [ ${INPUT_MULTI_BINARIES^^} == 'TRUE' ]; then # leverage golang feature to support multiple binaries # for example, 'go build -o xxx ./cmd/...' or 'go build -o xxx ./cmd/app1 ./cmd/app2' to generate multiple binaries' - GOAMD64=${GOAMD64_FLAG} GOARM=${GOARM_FLAG} GOMIPS=${GOMIPS_FLAG} GOOS=${INPUT_GOOS} GOARCH=${INPUT_GOARCH} ${INPUT_BUILD_COMMAND} ${INPUT_BUILD_FLAGS} ${LDFLAGS_PREFIX} "${INPUT_LDFLAGS}" -o ${BUILD_ARTIFACTS_FOLDER} ${INPUT_PROJECT_PATH} + GOAMD64=${GOAMD64_FLAG} GOARM=${GOARM_FLAG} GOMIPS=${GOMIPS_FLAG} GOOS=${INPUT_GOOS} GOARCH=${INPUT_GOARCH} ${INPUT_BUILD_COMMAND} ${INPUT_BUILD_FLAGS} -o ${BUILD_ARTIFACTS_FOLDER} ${INPUT_PROJECT_PATH} else RELEASE_ASSET_DIR=${INPUT_PROJECT_PATH}/${BUILD_ARTIFACTS_FOLDER} mkdir -p ${RELEASE_ASSET_DIR}