38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
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/
|