1- name : Build Editor All Platforms
1+ name : 🤖 Build Godot for All Platforms
22on :
33 workflow_call :
44
77env :
88 GODOT_REPOSITORY : godotengine/godot
99 GODOT_BASE_BRANCH : master
10- # Change Developers.md too
10+ # Change Developers.md and Justfile too
11+ # TODO (Lilith): Input these values from a .env file in both justfile and here
1112 GODOT_MAIN_SYNC_REF : bb92a4c8e27e30cdec05ab6d540d724b9b3cfb72
1213 SCONSFLAGS : verbose=yes warnings=all werror=no module_text_server_fb_enabled=yes minizip=yes deprecated=yes module_patchwork_editor_enabled=yes
1314 SCONSFLAGS_TEMPLATE : no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no
@@ -26,15 +27,15 @@ jobs:
2627 fail-fast : false
2728 matrix :
2829 include :
29- - name : " Windows Editor "
30+ - name : " 🪟 Build Godot for Windows "
3031 os : " windows-latest"
3132 id : windows-editor
3233 platform : windows
3334 target : editor
3435 sconsflags : tests=yes debug_symbols=yes
3536 bin : ./bin/godot.windows.editor.x86_64.exe
3637
37- - name : " 🐧 Linux Editor "
38+ - name : " 🐧 Build Godot for Linux "
3839 os : " ubuntu-22.04"
3940 id : linux-editor
4041 platform : linux
4344 sconsflags-template : optimize=size use_lto=yes debug_symbols=no
4445 bin : ./bin/godot.linuxbsd.editor.x86_64
4546
46- - name : " 🍎 macOS Editor "
47+ - name : " 🍎 Build Godot for macOS "
4748 os : " macos-14"
4849 id : macos-editor
4950 platform : macos
@@ -58,16 +59,21 @@ jobs:
5859 repository : ${{env.GODOT_REPOSITORY}}
5960 ref : ${{env.GODOT_MAIN_SYNC_REF}}
6061
61- - name : checkout-patchwork_editor
62+ - name : checkout-patchwork-godot-plugin
6263 uses : actions/checkout@v4
6364 with :
64- path : modules/patchwork_editor
65+ path : tmp/patchwork-godot-plugin
6566 fetch-depth : 0
67+
68+ - name : copy editor directory
69+ shell : bash
70+ run : |
71+ cp -R tmp/patchwork-godot-plugin/editor modules/patchwork_editor
6672
6773 - name : copy actions
6874 shell : bash
6975 run : |
70- cp -R modules/patchwork_editor /.github/actions/* .github/actions/
76+ cp -R tmp/patchwork-godot-plugin /.github/actions/* .github/actions/
7177
7278 - name : Select Xcode 16
7379 if : matrix.platform == 'macos'
@@ -171,8 +177,8 @@ jobs:
171177 - uses : actions/upload-artifact@v4
172178 if : matrix.id != 'linux-sanitizers'
173179 with :
174- name : patchwork_editor -${{ matrix.platform }}
175- path : ${{github.workspace}}/bin/*
180+ name : godot-with-patchwork -${{ matrix.platform }}
181+ path : ${{ github.workspace }}/bin/*
176182 retention-days : 90
177183
178184 # test:
@@ -231,46 +237,3 @@ jobs:
231237 # shell: bash
232238 # run: |
233239 # ${{matrix.bin}} --headless --test --force-colors "--test-case=[patchwork_editor]*"
234-
235- release :
236- if : startsWith(github.ref, 'refs/tags/')
237- runs-on : " ubuntu-latest"
238- permissions :
239- contents : write
240- needs : [build]
241- steps :
242- - name : Download Linux artifact
243- uses : actions/download-artifact@v4
244- with :
245- name : patchwork_editor-linux
246- path : artifacts/linux
247- - name : Download MacOS artifact
248- uses : actions/download-artifact@v4
249- with :
250- name : patchwork_editor-macos
251- path : artifacts/macos
252- - name : Download Windows artifact
253- uses : actions/download-artifact@v4
254- with :
255- name : patchwork_editor-windows
256- path : artifacts/windows
257- - name : Zip artifacts
258- run : |
259- ls -la artifacts/*
260- cd artifacts/windows
261- zip -r9 "../patchwork_editor-${{ github.ref_name }}-windows.zip" *
262- cd ../..
263- cd artifacts/macos
264- chmod a+x godot_macos_editor.app/Contents/MacOS/Godot
265- zip -r9 "../patchwork_editor-${{ github.ref_name }}-macos.zip" *
266- cd ../..
267- cd artifacts/linux
268- chmod a+x *
269- zip -r9 "../patchwork_editor-${{ github.ref_name }}-linux.zip" *
270- - name : Release
271- uses : nikitalita/action-gh-release@v1.0
272- with :
273- files : |
274- artifacts/patchwork_editor-${{ github.ref_name }}-windows.zip
275- artifacts/patchwork_editor-${{ github.ref_name }}-macos.zip
276- artifacts/patchwork_editor-${{ github.ref_name }}-linux.zip
0 commit comments