fix: make lint&ci happy

This commit is contained in:
源文雨
2025-10-01 00:03:23 +08:00
parent aa67d09ee1
commit 06b8b518f8
5 changed files with 6 additions and 44 deletions

View File

@@ -6,7 +6,7 @@ env:
BINARY_PREFIX: "zbp_"
BINARY_SUFFIX: ""
PR_PROMPT: "::warning:: Build artifact will not be uploaded due to the workflow is trigged by pull request."
LD_FLAGS: "-w -s"
LD_FLAGS: "-w -s -checklinkname=0"
jobs:
build:
@@ -45,6 +45,7 @@ jobs:
GOARCH: ${{ matrix.goarch }}
IS_PR: ${{ !!github.head_ref }}
run: |
if [ ! -f custom/register.go ]; then touch custom/register.go; fi
go generate ./...
if [ $GOOS = "windows" ]; then export BINARY_SUFFIX="$BINARY_SUFFIX.exe"; fi
if $IS_PR ; then echo $PR_PROMPT; fi