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

This commit is contained in:
2026-06-22 10:04:18 -06:00
parent 37a220fa6a
commit 15db4e92d2
2 changed files with 87 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
name: Build Godot Project (Linux)
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.)
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: Upload Linux Build Artifact
uses: actions/upload-artifact@v4
with:
name: linux-build
path: build/linux/