builds godot
bendn 2022-07-21
parent c27b659 · commit c29cb6d
-rw-r--r--.github/actions/build-godot/action.yml6
-rw-r--r--.github/custom.py24
-rw-r--r--.github/workflows/build.yml12
3 files changed, 35 insertions, 7 deletions
diff --git a/.github/actions/build-godot/action.yml b/.github/actions/build-godot/action.yml
index fea9be7..d9a1453 100644
--- a/.github/actions/build-godot/action.yml
+++ b/.github/actions/build-godot/action.yml
@@ -11,13 +11,14 @@ inputs:
default: https://github.com/godotengine/godot
required: true
tools:
- description: Editor / templates
+ description: To build the tools (aka the editor)
required: true
platform:
description: Platform to build for
+ default: x11
required: true
target:
- description: Target
+ description: Target (debug|release_debug|release)
required: true
flags:
description: Flags to pass to the build
@@ -39,6 +40,7 @@ runs:
libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev \
libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm
git clone --depth 1 "$URL" -b "$BRANCH" godot
+ cd godot && wget -nv 'https://raw.githubusercontent.com/bend-n/godot-2d-builds/main/.github/custom.py'
env:
BRANCH: ${{ inputs.branch }}
URL: ${{ inputs.url }}
diff --git a/.github/custom.py b/.github/custom.py
new file mode 100644
index 0000000..5fa7015
--- /dev/null
+++ b/.github/custom.py
@@ -0,0 +1,24 @@
+module_bmp_enabled = "no"
+module_bullet_enabled = "no"
+module_csg_enabled = "no"
+module_enet_enabled = "no"
+module_etc_enabled = "no"
+module_fbx_enabled = "no"
+module_etc_enabled = "no"
+module_gdnative_enabled = "no"
+module_gltf_enabled = "no"
+module_gridmap_enabled = "no"
+module_hdr_enabled = "no"
+module_jpg_enabled = "no"
+module_jsonrpc_enabled = "no"
+module_lightmapper_cpu_enabled = "no"
+module_mobile_vr_enabled = "no"
+module_navigation_enabled = "no"
+module_svg_enabled = "no"
+module_theora_enabled = "no"
+module_upnp_enabled = "no"
+module_vhacd_enabled = "no"
+module_visual_script_enabled = "no"
+module_webm_enabled = "no"
+module_webxr_enabled = "no"
+module_xatlas_unwrap_enabled = "no"
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e396686..0e1a166 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,6 +2,9 @@ name: Build godot 2d
on: workflow_dispatch
+env:
+ branch: 3.x
+
jobs:
build-templates:
runs-on: ubuntu-18.04
@@ -9,11 +12,11 @@ jobs:
- name: Build templates
uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
with:
- branch: 3.x
+ branch: ${{ env.branch }}
tools: no
- platform: x11
target: release
artifact-name: godot-templates
+ flags: disable_3d=yes
build-editor:
runs-on: ubuntu-18.04
@@ -21,9 +24,8 @@ jobs:
- name: Build editor
uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
with:
- branch: 3.x
+ branch: ${{ env.branch }}
tools: yes
- platform: x11
target: release_debug
artifact-name: godot-editor
@@ -33,7 +35,7 @@ jobs:
- name: Build headless
uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
with:
- branch: 3.x
+ branch: ${{ env.branch }}
tools: yes
platform: server
target: release_debug