fix(docker): proper CGO cross-compilation for caire with multi-arch toolchain

Replace CGO_ENABLED=0 (which fails because gioui.org requires CGO on Linux)
with a proper C cross-compiler approach using Debian multi-arch packages.
Running caire-builder with --platform=\$BUILDPLATFORM avoids QEMU crashes on
Apple Silicon; the C cross-compiler bridges the CGO gap for the target arch.

Also adds SKIP_MODEL_DOWNLOADS=true to the CI docker build job to prevent
HuggingFace CDN 504s in CI (image structure is what matters there).
This commit is contained in:
Siddharth Kumar Sah
2026-04-15 23:17:17 +08:00
parent 57c78e65ba
commit 26f5bb8092
2 changed files with 41 additions and 7 deletions
+1
View File
@@ -93,5 +93,6 @@ jobs:
file: docker/Dockerfile
push: false
tags: ashim:ci
build-args: SKIP_MODEL_DOWNLOADS=true
cache-from: type=gha,scope=unified
cache-to: type=gha,mode=max,scope=unified