chore(ci): add build flag for smaller size

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