26 lines
1000 B
YAML
26 lines
1000 B
YAML
name: Build Godot Project (Linux)
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-linux:
|
|
# Use standard Ubuntu runner environment (has Node.js for checkout & upload actions)
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- 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:
|
|
# 👇 Force the container to use bash to parse the block sequentially
|
|
entrypoint: /bin/bash
|
|
args: -c "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
|
|
with:
|
|
name: linux-build
|
|
path: build/linux/
|