fix: 优化编译文件的大小

This commit is contained in:
spiritlhl 2025-06-29 10:48:29 +08:00 committed by GitHub
parent 4fbe7bfb4b
commit ea5a90a8b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,12 @@ jobs:
run: |
mkdir -p bin
cd cmd
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }} -v -ldflags="-extldflags=-static" .
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
-o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }} \
-v \
-ldflags="-extldflags=-static -s -w" \
-trimpath \
.
- name: Upload New Assets
run: |