Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/buid_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,18 @@ jobs:
with:
go-version: "1.26.10"

- run: sudo apt-get update && sudo apt-get install -y upx-ucl

- run: |
for target in linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64 windows/arm64; do
suffix=""
if [ "${target%/*}" = "windows" ]; then suffix=".exe"; fi
(cd blink && CGO_ENABLED=0 GOOS=${target%/*} GOARCH=${target#*/} go build -trimpath -ldflags="-s -w" -o "$GITHUB_WORKSPACE/ecs-prefixed-downgraded/bin/blink-${target%/*}-${target#*/}${suffix}" .)
done

# compress Linux binaries only; UPX is reliable there, but breaks code-signing on macOS and trips antivirus on Windows
upx --best --lzma ecs-prefixed-downgraded/bin/blink-linux-amd64 ecs-prefixed-downgraded/bin/blink-linux-arm64

chmod 755 ecs-prefixed-downgraded/bin/blink-*

# 6. clone remote repository, so we can push it
Expand Down
Loading