From 91c9808bbf4918cd2fc187ccd1be91ec8c94d51d Mon Sep 17 00:00:00 2001 From: bionickatana Date: Mon, 22 Jun 2026 10:22:29 -0600 Subject: [PATCH] Godot auto build --- .gitea/workflows/build.yaml | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index b7a745a..de62e1c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -3,32 +3,23 @@ on: [push] jobs: build-linux: - # Use a specific Godot engine image as the execution environment. - # Replace '4.3' with your exact Godot version (e.g., 4.2.2, 4.1.1, etc.) + # Use standard Ubuntu runner environment (has Node.js for checkout & upload actions) runs-on: ubuntu-latest - container: - image: barichello/godot-ci:4.3 steps: - name: Check out repository code uses: actions/checkout@v4 - - name: Setup Godot Export Templates - run: | - mkdir -v -p ~/.local/share/godot/export_templates/ - # Links the pre-downloaded engine templates inside the container to the local path Godot expects - ln -s /root/.local/share/godot/export_templates/* ~/.local/share/godot/export_templates/ - - - name: Prepare Build Directories - run: | - mkdir -v -p build/linux - - - name: Export Linux Binary - run: | - # --headless: Runs Godot without an interface - # --export-release: Triggers a release build - # "Linux" matches the EXACT name of your export preset in Godot - godot --headless --export-release "Linux" build/linux/godot_number_factory.x86_64 + - name: Export Linux Binary via Godot Container + # This forces just THIS step to run inside the Godot container + uses: docker://barichello/godot-ci:4.3 + with: + # We manually tell the container what commands to run + args: | + mkdir -v -p ~/.local/share/godot/export_templates/ + ln -s /root/.local/share/godot/export_templates/* ~/.local/share/godot/export_templates/ + mkdir -v -p build/linux + godot --headless --export-release "Linux" build/linux/godot_number_factory.x86_64 - name: Upload Linux Build Artifact uses: actions/upload-artifact@v4