Fix workingdir
Some checks failed
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-debug, Debug Template, no, template_debug) (push) Failing after 1m14s
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-editor, Editor, yes, editor) (push) Failing after 1m16s
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-release, Release Template, yes, template_release) (push) Has been cancelled
Some checks failed
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-debug, Debug Template, no, template_debug) (push) Failing after 1m14s
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-editor, Editor, yes, editor) (push) Failing after 1m16s
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-release, Release Template, yes, template_release) (push) Has been cancelled
This commit is contained in:
@ -22,7 +22,12 @@ echo "Pulling image and creating working container..."
|
|||||||
# We capture the Container ID (CTR)
|
# We capture the Container ID (CTR)
|
||||||
CTR=$(buildah from --tls-verify=false --storage-driver=vfs "$FULL_IMAGE_URL")
|
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..."
|
echo "Running SCons inside container..."
|
||||||
|
|
||||||
# Explaining the flags:
|
# Explaining the flags:
|
||||||
@ -33,7 +38,6 @@ echo "Running SCons inside container..."
|
|||||||
|
|
||||||
buildah run \
|
buildah run \
|
||||||
--volume "$PWD":/src \
|
--volume "$PWD":/src \
|
||||||
--working-dir /src \
|
|
||||||
"$CTR" \
|
"$CTR" \
|
||||||
scons platform="$PLATFORM" \
|
scons platform="$PLATFORM" \
|
||||||
target="$TARGET" \
|
target="$TARGET" \
|
||||||
@ -44,6 +48,6 @@ buildah run \
|
|||||||
use_mingw=yes \
|
use_mingw=yes \
|
||||||
-j$(nproc)
|
-j$(nproc)
|
||||||
|
|
||||||
# --- 5. CLEANUP ---
|
# --- 6. CLEANUP ---
|
||||||
echo "Build successful. Removing container..."
|
echo "Build successful. Removing container..."
|
||||||
buildah rm "$CTR"
|
buildah rm "$CTR"
|
||||||
Reference in New Issue
Block a user