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)
This commit is contained in:
@@ -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/
|
||||
|
||||
+1
-1
Submodule apps/device-agent updated: 8d4b6f9d42...f6a03d280d
Reference in New Issue
Block a user