From 55a8da372780524f39264230ffa39af982b2a8b3 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 29 Dec 2025 20:42:51 -0600 Subject: [PATCH] Attempt AMD64 cross-build --- .gitea/workflows/buildah-check.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/buildah-check.yaml b/.gitea/workflows/buildah-check.yaml index 2d23ece..f607a48 100644 --- a/.gitea/workflows/buildah-check.yaml +++ b/.gitea/workflows/buildah-check.yaml @@ -23,4 +23,18 @@ jobs: # Buildah needs some storage configuration tweaks for running inside a container # We use the 'vfs' driver which is slow but works reliably inside containers without special privileges # We use '--isolation=chroot' to avoid cgroup permission issues inside the runner container - buildah build --storage-driver=vfs --isolation=chroot -t test-image . + buildah build --storage-driver=vfs --isolation=chroot -t test-image-arm64 . + + - name: Build for AMD64 (Cross-Platform Check) + run: | + echo "FROM alpine" > Dockerfile.amd64 + echo "RUN echo 'AMD64 Build successful'" >> Dockerfile.amd64 + + # Attempt to build for linux/amd64 + # This requires QEMU to be configured on the host or installed in the runner + buildah build \ + --storage-driver=vfs \ + --isolation=chroot \ + --platform linux/amd64 \ + -f Dockerfile.amd64 \ + -t test-image-amd64 .