builds godot
add headless builds back
closes #2
bendn 2023-03-23
parent 0dfbc86 · commit 24f5e43
-rw-r--r--.github/actions/build-upload-image/action.yml6
-rw-r--r--.github/actions/release/action.yml8
-rw-r--r--.github/workflows/reusable-build.yml9
3 files changed, 18 insertions, 5 deletions
diff --git a/.github/actions/build-upload-image/action.yml b/.github/actions/build-upload-image/action.yml
index ea8dd2d..172a05e 100644
--- a/.github/actions/build-upload-image/action.yml
+++ b/.github/actions/build-upload-image/action.yml
@@ -23,12 +23,12 @@ runs:
with:
name: templates
- - name: Get editor
+ - name: Get headless editor
uses: actions/download-artifact@v3
with:
- name: linuxbsd-editor-release
+ name: server-editor-release
- - run: mv godot.x11.opt.tools.64 godot && chmod -v +x godot
+ - run: mv godot_server.x11.opt.tools.64 godot && chmod -v +x godot
shell: bash
- name: Login to GitHub Container Registry
diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml
index 1283a56..1c42329 100644
--- a/.github/actions/release/action.yml
+++ b/.github/actions/release/action.yml
@@ -26,9 +26,15 @@ runs:
with:
name: linuxbsd-editor-release
+ - name: Get headless
+ uses: actions/download-artifact@v3
+ with:
+ name: server-editor-release
+
- name: Compress
run: |
mv godot.x11.opt.tools.64 ${{ env.fstart }}_linux.x86_64
+ mv godot_server.x11.opt.tools.64 ${{ env.fstart }}_linux_headless.64
mv templates.tpz ${{ env.fstart }}_export_templates.tpz
shell: bash
env:
@@ -42,7 +48,9 @@ runs:
files: |
${{ env.fstart }}_export_templates.tpz
${{ env.fstart }}_linux.x86_64
+ ${{ env.fstart }}_linux_headless.64
token: ${{ inputs.github-token }}
prerelease: ${{ env.prerelease }}
+ fail_on_unmatched_files: true
env:
fstart: ${{ inputs.name }}_v${{ env.version-name }}
diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml
index 64737f0..0b6f9f7 100644
--- a/.github/workflows/reusable-build.yml
+++ b/.github/workflows/reusable-build.yml
@@ -249,21 +249,26 @@ jobs:
path: ${{ env.tmps }}/templates.tpz
editor:
+ strategy:
+ matrix:
+ platform: [server, linuxbsd]
+
name: Linux editor
runs-on: ubuntu-20.04
steps:
- name: Compilation
uses: bend-n/godot-builds/.github/actions/[email protected]
with:
- platform: linuxbsd
+ platform: ${{ matrix.platform }}
target: release_debug
env:
tools: yes
+ flags: "" # override flags
- name: Upload artifact
uses: bend-n/godot-builds/.github/actions/[email protected]
with:
- name: linuxbsd-editor-release
+ name: ${{ matrix.platform }}-editor-release
path: godot/bin/*.64
image: