Godot auto build
This commit is contained in:
+11
-20
@@ -3,32 +3,23 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
# Use a specific Godot engine image as the execution environment.
|
# Use standard Ubuntu runner environment (has Node.js for checkout & upload actions)
|
||||||
# Replace '4.3' with your exact Godot version (e.g., 4.2.2, 4.1.1, etc.)
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: barichello/godot-ci:4.3
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Godot Export Templates
|
- name: Export Linux Binary via Godot Container
|
||||||
run: |
|
# This forces just THIS step to run inside the Godot container
|
||||||
mkdir -v -p ~/.local/share/godot/export_templates/
|
uses: docker://barichello/godot-ci:4.3
|
||||||
# Links the pre-downloaded engine templates inside the container to the local path Godot expects
|
with:
|
||||||
ln -s /root/.local/share/godot/export_templates/* ~/.local/share/godot/export_templates/
|
# We manually tell the container what commands to run
|
||||||
|
args: |
|
||||||
- name: Prepare Build Directories
|
mkdir -v -p ~/.local/share/godot/export_templates/
|
||||||
run: |
|
ln -s /root/.local/share/godot/export_templates/* ~/.local/share/godot/export_templates/
|
||||||
mkdir -v -p build/linux
|
mkdir -v -p build/linux
|
||||||
|
godot --headless --export-release "Linux" build/linux/godot_number_factory.x86_64
|
||||||
- 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
|
- name: Upload Linux Build Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user