diff --git a/.github/workflows/binary-build.yml b/.github/workflows/binary-build.yml index d4b3b0c..32a1424 100644 --- a/.github/workflows/binary-build.yml +++ b/.github/workflows/binary-build.yml @@ -34,6 +34,13 @@ jobs: 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 + # 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 uses: actions/upload-artifact@v3 with: