update
All checks were successful
Build Multi-Platform Binaries / build (push) Successful in 11m54s

This commit is contained in:
Flik
2025-12-26 17:14:54 +08:00
parent 4623a7f031
commit 549f9aaf26
63 changed files with 10266 additions and 740 deletions

View File

@@ -21,6 +21,11 @@ jobs:
go-version: '1.24'
cache: true
- name: Install UPX
run: |
sudo apt-get update
sudo apt-get install -y upx-ucl
- name: Build all platforms
run: |
mkdir -p dist
@@ -55,6 +60,13 @@ jobs:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" \
-o dist/client-windows-amd64.exe ./cmd/client
- name: Compress with UPX
run: |
# UPX 压缩 Linux 和 Windows 二进制 (macOS 不支持)
upx -9 dist/server-linux-amd64 dist/client-linux-amd64 || true
upx -9 dist/server-linux-arm64 dist/client-linux-arm64 || true
upx -9 dist/server-windows-amd64.exe dist/client-windows-amd64.exe || true
- name: List artifacts
run: ls -lah dist/