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)
|
||||
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"
|
||||
Reference in New Issue
Block a user