fix: 修复 Ubuntu 运行时依赖和 Alpine 编译错误
Some checks failed
Build and Release Mond / build-and-test (arm64, alpine) (push) Failing after 23s
Build and Release Mond / build-and-test (amd64, alpine) (push) Failing after 31s
Build and Release Mond / build-and-test (amd64, ubuntu) (push) Failing after 2m3s
Build and Release Mond / build-and-test (arm64, ubuntu) (push) Failing after 4m39s
Build and Release Mond / release (push) Has been skipped
Some checks failed
Build and Release Mond / build-and-test (arm64, alpine) (push) Failing after 23s
Build and Release Mond / build-and-test (amd64, alpine) (push) Failing after 31s
Build and Release Mond / build-and-test (amd64, ubuntu) (push) Failing after 2m3s
Build and Release Mond / build-and-test (arm64, ubuntu) (push) Failing after 4m39s
Build and Release Mond / release (push) Has been skipped
- docker/Dockerfile.ubuntu: 添加 -DSTATIC=ON 参数启用静态链接 解决了 scratch 镜像中缺少动态库 (libboost_chrono.so) 的运行时错误 - docker/Dockerfile.alpine: 添加 libexecinfo-dev 包 解决了 musl libc 缺少 execinfo.h 头文件的编译错误 修复平台: - Ubuntu (amd64/arm64) - 运行时依赖问题 - Alpine (amd64/arm64) - execinfo.h 编译错误
This commit is contained in:
@@ -59,7 +59,7 @@ RUN if [ "$BUILDPLATFORM" != "$TARGETPLATFORM" ]; then \
|
||||
fi && \
|
||||
echo "Building with parallel jobs: $MAKE_JOBS" && \
|
||||
mkdir -p build/release && cd build/release && \
|
||||
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI_DEPS=OFF -DARCH=default && \
|
||||
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI_DEPS=OFF -DARCH=default -DSTATIC=ON && \
|
||||
make $MAKE_JOBS daemon
|
||||
|
||||
# 最终阶段 - 只复制二进制文件
|
||||
|
||||
Reference in New Issue
Block a user