Skip to content

Commit 3a24da6

Browse files
committed
hmm
1 parent 0d1164e commit 3a24da6

File tree

4 files changed

+27
-19
lines changed

4 files changed

+27
-19
lines changed

.github/actions/build-upload-image/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ runs:
1919
uses: bend-n/godot-builds/.github/actions/get-version@main
2020

2121
- name: Get templates
22-
uses: actions/download-artifact@v3
22+
uses: actions/download-artifact@v4
2323
with:
2424
name: templates
2525

26-
- name: Get editor
27-
uses: actions/download-artifact@v3
26+
- name: Get headless editor
27+
uses: actions/download-artifact@v4
2828
with:
29-
name: linuxbsd-editor-release
29+
name: server-editor-release
3030

31-
- run: mv godot.x11.opt.64 godot && chmod -v +x godot
31+
- run: mv godot_server.x11.opt.64 godot && chmod -v +x godot
3232
shell: bash
3333

3434
- name: Login to GitHub Container Registry

.github/actions/release/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ runs:
1717
uses: bend-n/godot-builds/.github/actions/get-version@main
1818

1919
- name: Get templates
20-
uses: actions/download-artifact@v3
20+
uses: actions/download-artifact@v4
2121
with:
2222
name: templates
2323

2424
- name: Get editor
25-
uses: actions/download-artifact@v3
25+
uses: actions/download-artifact@v4
2626
with:
2727
name: linuxbsd-editor-release
2828

.github/actions/upload-artifact/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ runs:
1616
using: "composite"
1717
steps:
1818
- name: Upload Godot Artifact
19-
uses: actions/upload-artifact@v3
19+
uses: actions/upload-artifact@v4
2020
with:
21-
name: ${{ inputs.name }}
21+
name: ${{ inputs.name }}-${{ matrix.target }}
2222
path: ${{ inputs.path }}
2323
retention-days: 14
2424
if-no-files-found: error

.github/workflows/reusable-build.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ jobs:
179179
uses: bend-n/godot-builds/.github/actions/upload-artifact@main
180180
with:
181181
path: godot/bin/*.zip
182+
name: ${{ inputs.name }}-${{ matrix.target }}-${{ matrix.flags }}
182183

183184
templates:
184185
needs: [web, macos, windows, linux, android]
@@ -188,11 +189,14 @@ jobs:
188189
tmps: "templates"
189190
steps:
190191
- name: Download all artifacts
191-
uses: actions/download-artifact@v3
192+
uses: actions/download-artifact@v4
192193

193194
- name: List all downloaded files
194195
run: ls -R
195196

197+
- name: flatten
198+
run: find . -mindepth 2 -type f -exec mv -t . -i '{}' +
199+
196200
- name: Getdot
197201
uses: actions/checkout@v3
198202
with:
@@ -207,31 +211,31 @@ jobs:
207211
mkdir -vp "$tmps"
208212
echo "Preparing linux"
209213
linux="godot.x11.opt"
210-
mv "linux/$linux.64" "$tmps/linux_x11_debug.x86_64"
211-
mv "linux/$linux.debug.64" "$tmps/linux_x11_release.x86_64"
214+
mv "$linux.64" "$tmps/linux_x11_debug.x86_64"
215+
mv "$linux.debug.64" "$tmps/linux_x11_release.x86_64"
212216
213217
echo "Preparing windows"
214218
windows="godot.windows.opt"
215219
# mv "windows/$windows.debug.64.exe" "$tmps/windows_debug_x86_64.exe"
216-
mv "windows/$windows.64.exe" "$tmps/windows_release_x86_64.exe"
220+
mv "$windows.64.exe" "$tmps/windows_release_x86_64.exe"
217221
218222
echo "Preparing android"
219223
# mv "android/android_debug.apk" "$tmps/android_debug.apk"
220-
mv "android/android_release.apk" "$tmps/android_release.apk"
224+
mv "android_release.apk" "$tmps/android_release.apk"
221225
222226
echo "Preparing macos"
223227
mac="godot.osx.opt"
224228
cp -r "godot-repo/misc/dist/osx_template.app" "."
225229
mkdir -p "osx_template.app/Contents/MacOS"
226-
cp "macos/$mac.universal" "osx_template.app/Contents/MacOS/godot_osx_release.64"
230+
cp "$mac.universal" "osx_template.app/Contents/MacOS/godot_osx_release.64"
227231
# cp "macos/$mac.debug.universal" "osx_template.app/Contents/MacOS/godot_osx_debug.64"
228232
chmod +x osx_template.app/Contents/MacOS/*.64
229233
zip -q -9 -r "$tmps/osz.zip" "osx_template.app"
230234
231235
echo "Preparing web"
232236
web="godot.javascript.opt"
233-
mv "web/$web.zip" "$tmps/webassembly_release.zip"
234-
mv "web/$web.gdnative.zip" "$tmps/webassembly_gdnative_release.zip"
237+
mv "$web.zip" "$tmps/webassembly_release.zip"
238+
mv "$web.gdnative.zip" "$tmps/webassembly_gdnative_release.zip"
235239
236240
- name: Prepare bundle
237241
run: cd "${tmps}" && zip -qr9 templates.tpz ./*
@@ -240,21 +244,25 @@ jobs:
240244
uses: bend-n/godot-builds/.github/actions/upload-artifact@main
241245
with:
242246
path: ${{ env.tmps }}/templates.tpz
247+
name: templates
243248

244249
editor:
250+
strategy:
251+
matrix:
252+
platform: [server, linuxbsd]
245253
name: Linux editor
246254
runs-on: ubuntu-20.04
247255
steps:
248256
- name: Compilation
249257
uses: bend-n/godot-builds/.github/actions/build-godot@main
250258
with:
251-
platform: linuxbsd
259+
platform: ${{ matrix.platform }}
252260
target: release
253261

254262
- name: Upload artifact
255263
uses: bend-n/godot-builds/.github/actions/upload-artifact@main
256264
with:
257-
name: linuxbsd-editor-release
265+
name: ${{ matrix.platform }}-editor-release
258266
path: godot/bin/*.64
259267

260268
image:

0 commit comments

Comments
 (0)