diff --git a/.gitea/workflows/scripts/build-with-buildah.sh b/.gitea/workflows/scripts/build-with-buildah.sh index 9d94da62d8d..d6a27b18d84 100644 --- a/.gitea/workflows/scripts/build-with-buildah.sh +++ b/.gitea/workflows/scripts/build-with-buildah.sh @@ -22,7 +22,12 @@ echo "Pulling image and creating working container..." # We capture the Container ID (CTR) CTR=$(buildah from --tls-verify=false --storage-driver=vfs "$FULL_IMAGE_URL") -# --- 4. EXECUTE BUILD --- +# --- 4. CONFIGURE CONTAINER --- +# FIX: buildah run doesn't have --working-dir. +# We use 'buildah config' to set it on the container instance instead. +buildah config --workingdir /src "$CTR" + +# --- 5. EXECUTE BUILD --- echo "Running SCons inside container..." # Explaining the flags: @@ -33,7 +38,6 @@ echo "Running SCons inside container..." buildah run \ --volume "$PWD":/src \ - --working-dir /src \ "$CTR" \ scons platform="$PLATFORM" \ target="$TARGET" \ @@ -44,6 +48,6 @@ buildah run \ use_mingw=yes \ -j$(nproc) -# --- 5. CLEANUP --- +# --- 6. CLEANUP --- echo "Build successful. Removing container..." buildah rm "$CTR" \ No newline at end of file