fix: 版本变量改 PACKAGE_VERSION、CI 触发 tags['*']、修正静态措辞
Build and Release Mond / build-and-test (amd64) (push) Successful in 1s
Build and Release Mond / build-and-test (arm64) (push) Successful in 35s
Build and Release Mond / release (push) Successful in 16s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 22:30:53 +08:00
co-authored by Claude Opus 4.8
parent 317973e94d
commit 5430297ff9
3 changed files with 14 additions and 15 deletions
+6 -4
View File
@@ -4,7 +4,7 @@ name: Build and Release Mond
on:
push:
branches: [main, master, develop]
tags: ['v*']
tags: ['*']
env:
DOCKER_BUILDKIT: "1"
@@ -60,9 +60,11 @@ jobs:
# 快速验证
mkdir -p test && tar -xzf "${TARGZ}" -C test
test/mond --version 2>/dev/null || echo "⚠️ 跳过版本检查"
# 纯静态校验(depends 系统应产出无动态依赖的二进制)
ldd test/mond 2>&1 | grep -q "not a dynamic executable" \
&& echo "✅ 纯静态链接" || echo "⚠️ 非纯静态二进制"
# 依赖校验:第三方库(boost/ssl/zmq 等)应已被 depends 静态链入,
# 运行时只应依赖 glibclibc/libm/libpthread/ld-linux
EXTRA=$(ldd test/mond 2>/dev/null | awk '{print $1}' \
| grep -vE '(^|/)(linux-vdso|libc\.so|libm\.so|libpthread\.so|libdl\.so|librt\.so|libresolv\.so|libutil\.so|ld-linux)' || true)
[ -z "$EXTRA" ] && echo "✅ 运行时仅依赖 glibc" || echo "⚠️ 检测到非 glibc 动态依赖: ${EXTRA}"
rm -rf test
- name: Build Debian package