fix? build-docker

This commit is contained in:
Agel committed 2026-05-23 20:24:05 +02:00
1 parent bfc50a67b8
commit e3766c8e55
3 files changed
+9

No files matched your search

+5
View File
@@ -5,6 +5,11 @@ set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
# Default sysroot for cross-compiled deps; overridden per-project via -DCMAKE_FIND_ROOT_PATH.
# Must be non-empty for ONLY mode to work — without it CMake silently falls back to host paths
# (e.g. /usr/include), which causes the MinGW compiler to pull in Linux glibc headers.
set(CMAKE_FIND_ROOT_PATH /opt/mingw-sysroot /usr/x86_64-w64-mingw32)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+2
View File
@@ -24,6 +24,7 @@ echo "Using container runtime: $RUNTIME"
# Build CI image
echo "==> Building CI image from $DOCKERFILE"
"$RUNTIME" build \
--platform linux/amd64 \
--build-arg QT_VERSION=6.10.3 \
-t "$IMAGE_TAG" \
-f "$DOCKERFILE" \
@@ -36,6 +37,7 @@ mkdir -p "$OUTPUT_DIR"
run_in_container() {
local extra_args=("$@")
"$RUNTIME" run --rm \
--platform linux/amd64 \
--entrypoint bash \
-v "$PROJECT_DIR:/src-ro:ro" \
"${extra_args[@]}" \
+2
View File
@@ -32,6 +32,7 @@ echo "Using container runtime: $RUNTIME"
# Build CI image
echo "==> Building CI image from $DOCKERFILE"
"$RUNTIME" build \
--platform linux/amd64 \
--build-arg QT_VERSION=6.10.3 \
-t "$IMAGE_TAG" \
-f "$DOCKERFILE" \
@@ -45,6 +46,7 @@ mkdir -p "$OUTPUT_DIR"
run_in_container() {
local extra_args=("$@")
"$RUNTIME" run --rm \
--platform linux/amd64 \
-v "$PROJECT_DIR:/src-ro:ro" \
"${extra_args[@]}" \
"$IMAGE_TAG" \