Godot auto build
Build Godot Project (Linux) / build-linux (push) Failing after 7s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s

This commit is contained in:
2026-06-22 10:22:29 -06:00
parent 15db4e92d2
commit 91c9808bbf
+11 -20
View File
@@ -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