chore(ci): add build flag for smaller size
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user