Re-add upx again
This commit is contained in:
7
.github/workflows/binary-build.yml
vendored
7
.github/workflows/binary-build.yml
vendored
@@ -34,6 +34,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -o zurg-${{ matrix.goos }}-${{ matrix.goarch }} cmd/zurg/main.go
|
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -o zurg-${{ matrix.goos }}-${{ matrix.goarch }} cmd/zurg/main.go
|
||||||
|
|
||||||
|
# Install and use UPX to compress the binary
|
||||||
|
- name: Install and Compress with UPX
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y upx-ucl
|
||||||
|
upx --best zurg-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user