ci: 移除静态链接验证步骤
This commit is contained in:
@@ -50,27 +50,6 @@ jobs:
|
||||
--output type=local,dest=./output \
|
||||
-f docker/Dockerfile.ubuntu .
|
||||
|
||||
- name: Verify static linking
|
||||
run: |
|
||||
DIR="./output/linux_${{ matrix.arch }}"
|
||||
BINARY="${DIR}/mond"
|
||||
|
||||
if [ ! -f "$BINARY" ]; then
|
||||
echo "❌ 二进制文件不存在: $BINARY"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "🔍 验证静态链接..."
|
||||
if ldd "$BINARY" 2>&1 | grep -q "not a dynamic executable"; then
|
||||
echo "✅ 纯静态链接验证成功"
|
||||
else
|
||||
echo "❌ 静态链接验证失败,发现动态库依赖:"
|
||||
ldd "$BINARY" || true
|
||||
exit 1
|
||||
fi
|
||||
|
||||
file "$BINARY"
|
||||
|
||||
- name: Package and test
|
||||
run: |
|
||||
DIR="./output/linux_${{ matrix.arch }}"
|
||||
|
||||
Reference in New Issue
Block a user