Skip to content

Commit 5aa9515

Browse files
committed
CI: add release job
1 parent 0ceecf1 commit 5aa9515

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

.github/workflows/linux_builds.yml

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ jobs:
7777
tests: false
7878
artifact: true
7979

80+
- name: Template w/ Mono (target=template_debug)
81+
cache-name: linux-template-debug-mono
82+
target: template_debug
83+
sconsflags: module_mono_enabled=yes
84+
build-mono: false
85+
tests: false
86+
artifact: true
87+
8088
- name: Minimal template (target=template_release, everything disabled)
8189
cache-name: linux-template-minimal
8290
target: template_release

.github/workflows/macos_builds.yml

+7
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
sconsflags: debug_symbols=no tests=yes
3434
bin: "./bin/godot.macos.template_release.universal"
3535

36+
- name: Template (target=template_debug)
37+
cache-name: macos-template-debug
38+
target: template_debug
39+
tests: false
40+
sconsflags: debug_symbols=yes tests=no
41+
bin: "./bin/godot.macos.template_debug.universal"
42+
3643
steps:
3744
- uses: actions/checkout@v4
3845

.github/workflows/runner.yml

+40
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,43 @@ jobs:
6363
# appropriately.
6464
needs: linux-build
6565
uses: ./.github/workflows/godot_cpp_test.yml
66+
67+
release:
68+
name: Release
69+
if: startsWith(github.ref, 'refs/tags/')
70+
needs: [linux-build, macos-build, windows-build]
71+
runs-on: "ubuntu-latest"
72+
permissions:
73+
contents: write
74+
steps:
75+
- name: Download artifacts
76+
uses: actions/download-artifact@v4
77+
78+
# FIXME: remove
79+
- name: list files
80+
run: |
81+
ls linux-editor-mono
82+
ls macos-editor
83+
84+
- name: Prepare release files
85+
run: |
86+
zip -r GodotSharp.zip linux-editor-mono/GodotSharp
87+
88+
- name: Upload release files
89+
uses: softprops/action-gh-release@v2.0.8
90+
with:
91+
fail_on_unmatched_files: true
92+
files: |
93+
GodotSharp.zip
94+
linux-editor-mono/godot.linuxbsd.editor.x86_64.mono
95+
linux-template-minimal/godot.linuxbsd.template_release.x86_64
96+
linux-template-debug-mono/godot.linuxbsd.template_debug.x86_64.mono
97+
linux-template-mono/godot.linuxbsd.template_release.x86_64.mono
98+
macos-editor/godot.macos.editor.universal
99+
macos-template/godot.macos.template_release.universal
100+
macos-template-debug/godot.macos.template_debug.universal
101+
windows-editor/godot.windows.editor.x86_64.exe
102+
windows-template/godot.windows.template_release.x86_64.exe
103+
windows-template/godot.windows.template_release.x86_64.console.exe
104+
windows-template-debug/godot.windows.template_debug.x86_64.exe
105+
windows-template-debug/godot.windows.template_debug.x86_64.console.exe

.github/workflows/windows_builds.yml

+8
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ jobs:
3636
target: template_release
3737
tests: false
3838
sconsflags: debug_symbols=no
39+
bin: "./bin/godot.windows.template_release.x86_64.console.exe"
40+
41+
- name: Template (target=template_debug)
42+
cache-name: windows-template-debug
43+
target: template_debug
44+
tests: false
45+
sconsflags: debug_symbols=yes
46+
bin: "./bin/godot.windows.template_debug.x86_64.console.exe"
3947

4048
steps:
4149
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)