File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,15 @@ jobs:
5252
5353 # 构建标志 - 添加静态编译选项解决GLIBC兼容性问题
5454 LDFLAGS="-X RealityChecker/internal/version.Version=$VERSION -X RealityChecker/internal/version.Commit=$COMMIT -X RealityChecker/internal/version.BuildTime=$BUILD_TIME -s -w"
55- BUILD_FLAGS="-ldflags '$LDFLAGS' -tags netgo -installsuffix netgo"
5655
5756 # Linux AMD64 - 静态编译
58- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $BUILD_FLAGS -o reality-checker .
57+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "$LDFLAGS" -tags netgo -installsuffix netgo -o reality-checker .
5958 chmod +x reality-checker
6059 zip -j dist/reality-checker-linux-amd64.zip reality-checker
6160 rm reality-checker
6261
6362 # Linux ARM64 - 静态编译
64- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build $BUILD_FLAGS -o reality-checker .
63+ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "$LDFLAGS" -tags netgo -installsuffix netgo -o reality-checker .
6564 chmod +x reality-checker
6665 zip -j dist/reality-checker-linux-arm64.zip reality-checker
6766 rm reality-checker
You can’t perform that action at this time.
0 commit comments