mirror of
https://github.com/oneclickvirt/backtrace.git
synced 2025-07-01 21:49:02 +08:00
fix: 优化编译文件的大小
This commit is contained in:
parent
4fbe7bfb4b
commit
ea5a90a8b1
7
.github/workflows/main.yaml
vendored
7
.github/workflows/main.yaml
vendored
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user