Re-add upx again

This commit is contained in:
Ben Sarmiento
2023-10-28 21:42:23 +02:00
parent 6946ccf4dd
commit c28dc0bf46

View File

@@ -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: