From 9550f92ec526080c1a6ced75e87ed02fa7c9b190 Mon Sep 17 00:00:00 2001 From: yzqzss Date: Sun, 9 Jun 2024 03:53:38 +0800 Subject: [PATCH] compress with upx --- .gitea/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 251f5ba..71be134 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -28,11 +28,10 @@ jobs: goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} multi_binaries: true - executable_compression: upx -v project_path: ./cmd/... upload: false # output is release_asset_dir - - name: rename artifact + - name: rename artifact and compress with upx # append os and arch to the artifact name (handle windows .exe) run: | cd ${{ steps.go-release-action.outputs.release_asset_dir }} @@ -41,6 +40,7 @@ jobs: noextname=$(basename "$f" .exe) mv "$f" "${noextname}-${{ matrix.goos }}-${{ matrix.goarch }}.exe" else + upx -v "$f" mv "$f" "${f}-${{ matrix.goos }}-${{ matrix.goarch }}" fi done