chore(ci): add build flag for smaller size

This commit is contained in:
nullcat
2026-05-25 01:18:21 +08:00
parent ad335bba71
commit 0ef729db72
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
if [ "${{ matrix.goos }}" = "windows" ]; then
BINARY_NAME="${BINARY_NAME}.exe"
fi
go build -v -o "release/${BINARY_NAME}" .
go build -v -o -ldflags=”-s -w" "release/${BINARY_NAME}" .
- name: Compress with UPX
if: matrix.goos != 'darwin' && !(matrix.goos == 'windows' && matrix.goarch == 'arm64')