From 014309c39080e7a1a7a7116892de8b1d5bc16c44 Mon Sep 17 00:00:00 2001 From: datadunia Date: Thu, 18 Jun 2026 20:07:13 +0700 Subject: [PATCH] fix(ci): strip debug symbols from device-agent release build - CI build: add -ldflags='-s -w' to reduce binary size ~30% - Update device-agent submodule reference (heartbeat fixes) --- .gitea/workflows/build_device_agent.yaml | 2 +- apps/device-agent | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build_device_agent.yaml b/.gitea/workflows/build_device_agent.yaml index db95c10..0aa3fac 100644 --- a/.gitea/workflows/build_device_agent.yaml +++ b/.gitea/workflows/build_device_agent.yaml @@ -59,7 +59,7 @@ jobs: if [ "$GOOS" = "windows" ]; then EXT=".exe"; fi OUT="bin/nexus-device-agent-${GOOS}-${GOARCH}${EXT}" echo "Building $OUT ..." - CGO_ENABLED=0 GOOS="$GOOS" GOARCH="$GOARCH" go build -o "$OUT" . + CGO_ENABLED=0 GOOS="$GOOS" GOARCH="$GOARCH" go build -ldflags="-s -w" -o "$OUT" . done echo "=== Build output ===" ls -la bin/ diff --git a/apps/device-agent b/apps/device-agent index 8d4b6f9..f6a03d2 160000 --- a/apps/device-agent +++ b/apps/device-agent @@ -1 +1 @@ -Subproject commit 8d4b6f9d425f35f6876b11486cd470b971f486e5 +Subproject commit f6a03d280d61382456392b4c461bcf2b53481aba