compress with upx
Some checks failed
Gitea Actions Demo / Release Go Binary (386, linux) (push) Failing after 26s
Gitea Actions Demo / Release Go Binary (386, windows) (push) Successful in 36s
Gitea Actions Demo / Release Go Binary (amd64, darwin) (push) Failing after 23s
Gitea Actions Demo / Release Go Binary (amd64, linux) (push) Failing after 29s
Gitea Actions Demo / Release Go Binary (amd64, windows) (push) Successful in 33s
Gitea Actions Demo / Release Go Binary (arm64, darwin) (push) Failing after 29s
Gitea Actions Demo / Release Go Binary (arm64, linux) (push) Failing after 25s

This commit is contained in:
yzqzss 2024-06-09 03:53:38 +08:00
parent 7d89c8e34d
commit 9550f92ec5

View File

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