ci: 移除静态链接验证步骤

This commit is contained in:
2025-12-15 14:56:53 +08:00
parent 7f537a420f
commit 89f909606c

View File

@@ -50,27 +50,6 @@ jobs:
--output type=local,dest=./output \ --output type=local,dest=./output \
-f docker/Dockerfile.ubuntu . -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 - name: Package and test
run: | run: |
DIR="./output/linux_${{ matrix.arch }}" DIR="./output/linux_${{ matrix.arch }}"