fix: 版本变量改 PACKAGE_VERSION、CI 触发 tags['*']、修正静态措辞
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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 静态链入,
|
||||
# 运行时只应依赖 glibc(libc/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
|
||||
|
||||
Reference in New Issue
Block a user