This commit is contained in:
johlanse 2022-05-27 21:37:50 +08:00
parent 439d979bbb
commit 160bf6777e
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ jobs:
if [ $GOOS = "windows" ]; then export BINARY_SUFFIX="$BINARY_SUFFIX.exe"; fi
if $IS_PR ; then echo $PR_PROMPT; fi
export BINARY_NAME="$BINARY_PREFIX$GOOS_$GOARCH$BINARY_SUFFIX"
export LD_FLAGS="-w -s -X main.Version=${COMMIT_ID::7}"
export LD_FLAGS="-w -s -X main.VERSION=${COMMIT_ID::7}"
go mod tidy
go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./
- name: Upload artifact