Skip to content

Commit d83fef6

Browse files
piierthoCedNaruPierre-Thomas Meisels
authored
chore: Update to godot 4.6 (#895)
* chore: Update to godot 4.6 --------- Co-authored-by: CedNaru <cednaru.dev@gmail.com> Co-authored-by: Pierre-Thomas Meisels <dev001@infra.utopia-rise.com>
1 parent f3959ac commit d83fef6

996 files changed

Lines changed: 228153 additions & 207497 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/assemble_ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Create iOS template app
7373
run: |
74-
cp -r misc/dist/ios_xcode .
74+
cp -r misc/dist/apple_embedded_xcode ios_xcode
7575
cp -r MoltenVK/Package/Release/MoltenVK/static/MoltenVK.xcframework ios_xcode/
7676
cp libgodot.ios.template_release.arm64.a ios_xcode/libgodot.ios.release.xcframework/ios-arm64/libgodot.a
7777
cp libgodot.ios.template_debug.arm64.a ios_xcode/libgodot.ios.debug.xcframework/ios-arm64/libgodot.a

.github/workflows/assemble_macos.yml

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
type: string
99
build-version:
1010
type: string
11+
build-test-templates:
12+
type: boolean
13+
default: true
1114

1215
concurrency:
1316
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macos_assemble
@@ -183,4 +186,86 @@ jobs:
183186
uses: actions/upload-artifact@v4
184187
with:
185188
name: export_template_all_macos
186-
path: export_template_all_macos.zip
189+
path: export_template_all_macos.zip
190+
191+
create-macos-test-export-template-universal:
192+
if: ${{ inputs.build-test-templates }}
193+
runs-on: macos-latest
194+
name: ${{ matrix.name }}
195+
strategy:
196+
fail-fast: false
197+
matrix:
198+
include:
199+
- name: Create test export template universal binary release
200+
target: release
201+
202+
- name: Create test export template universal binary debug
203+
target: debug
204+
steps:
205+
- name: Clone Godot JVM module.
206+
uses: actions/checkout@v4
207+
208+
- name: Download ${{ matrix.target }} x86_64 test export_template
209+
uses: actions/download-artifact@v4
210+
with:
211+
name: export_template_test_${{ matrix.target }}_macos_x86_64
212+
path: "./"
213+
214+
- name: Download ${{ matrix.target }} arm64 test export_template
215+
uses: actions/download-artifact@v4
216+
with:
217+
name: export_template_test_${{ matrix.target }}_macos_arm64
218+
path: "./"
219+
220+
- name: Create macos universal binary
221+
uses: ./.github/actions/create-macos-universal-binary
222+
with:
223+
amd-64-binary: godot.macos.template_${{ matrix.target }}.x86_64.jvm.${{ inputs.build-version }}
224+
arm-64-binary: godot.macos.template_${{ matrix.target }}.arm64.jvm.${{ inputs.build-version }}
225+
universal-output-binary: godot.macos.template_${{ matrix.target }}.universal
226+
227+
- name: Upload ${{ matrix.target }} macos test universal artifact
228+
uses: actions/upload-artifact@v4
229+
with:
230+
name: export_template_test_${{ matrix.target }}_macos_universal
231+
path: godot.macos.template_${{ matrix.target }}.universal
232+
233+
create-macos-test-export-template-app:
234+
if: ${{ inputs.build-test-templates }}
235+
needs: [ create-macos-test-export-template-universal ]
236+
runs-on: macos-latest
237+
name: Create macos test export template app
238+
steps:
239+
- name: Clone Godot Engine
240+
uses: actions/checkout@v4
241+
with:
242+
repository: godotengine/godot
243+
ref: ${{ inputs.godot-version }}
244+
245+
- name: Download debug test export_template
246+
uses: actions/download-artifact@v4
247+
with:
248+
name: export_template_test_debug_macos_universal
249+
path: .
250+
251+
- name: Download release test export_template
252+
uses: actions/download-artifact@v4
253+
with:
254+
name: export_template_test_release_macos_universal
255+
path: .
256+
257+
- name: Create MacOs test template app
258+
run: |
259+
cp -r misc/dist/macos_template.app .
260+
mkdir -p macos_template.app/Contents/MacOS
261+
cp godot.macos.template_release.universal macos_template.app/Contents/MacOS/godot_macos_release.universal
262+
cp godot.macos.template_debug.universal macos_template.app/Contents/MacOS/godot_macos_debug.universal
263+
chmod +x macos_template.app/Contents/MacOS/godot_macos*
264+
zip -q -9 -r export_template_test_all_macos.zip macos_template.app
265+
shell: bash
266+
267+
- name: Upload artifact
268+
uses: actions/upload-artifact@v4
269+
with:
270+
name: export_template_test_all_macos
271+
path: export_template_test_all_macos.zip

.github/workflows/build_linux.yml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,44 @@ on:
44
inputs:
55
godot-version:
66
type: string
7+
build-test-templates:
8+
type: boolean
9+
default: true
710

811
concurrency:
912
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux_build
1013
cancel-in-progress: true
1114

1215
jobs:
16+
setup-matrix:
17+
runs-on: ubuntu-latest
18+
outputs:
19+
matrix: ${{ steps.set-matrix.outputs.matrix }}
20+
steps:
21+
- id: set-matrix
22+
run: |
23+
MATRIX='{"include":[
24+
{"name":"Build editor release x86_64 (target=editor)","cache-name":"editor_release_linux_x86_64","target":"editor","scons-flags":""},
25+
{"name":"Build editor debug (target=editor, debug_symbols=true )","cache-name":"editor_debug_linux_x86_64","target":"editor","scons-flags":"debug_symbols=true"},
26+
{"name":"Build editor dev (target=editor, dev_build=yes, debug_symbols=true )","cache-name":"editor_dev_linux_x86_64","target":"editor","scons-flags":"dev_build=yes debug_symbols=true"},
27+
{"name":"Build release template x86_64","cache-name":"export_template_release_linux_x86_64","target":"template_release","scons-flags":""},
28+
{"name":"Build debug template x86_64","cache-name":"export_template_debug_linux_x86_64","target":"template_debug","scons-flags":""}
29+
]}'
30+
if [ "${{ inputs.build-test-templates }}" == "true" ]; then
31+
MATRIX=$(echo "$MATRIX" | jq -c '.include += [
32+
{"name":"Build release template x86_64 (test)","cache-name":"export_template_test_release_linux_x86_64","target":"template_release","scons-flags":"disable_path_overrides=no"},
33+
{"name":"Build debug template x86_64 (test)","cache-name":"export_template_test_debug_linux_x86_64","target":"template_debug","scons-flags":"disable_path_overrides=no"}
34+
]')
35+
fi
36+
echo "matrix=$(echo $MATRIX | jq -c '.')" >> $GITHUB_OUTPUT
37+
1338
build-linux:
39+
needs: setup-matrix
1440
runs-on: ubuntu-22.04 # use the oldest ubuntu version still available to github actions for the best backwards compatibility
1541
name: ${{ matrix.name }}
1642
strategy:
1743
fail-fast: false
18-
matrix:
19-
include:
20-
- name: Build editor release x86_64 (target=editor)
21-
cache-name: editor_release_linux_x86_64
22-
target: editor
23-
scons-flags: ''
24-
25-
- name: Build editor debug (target=editor, debug_symbols=true )
26-
cache-name: editor_debug_linux_x86_64
27-
target: editor
28-
scons-flags: debug_symbols=true
29-
30-
- name: Build editor dev (target=editor, dev_build=yes, debug_symbols=true )
31-
cache-name: editor_dev_linux_x86_64
32-
target: editor
33-
scons-flags: dev_build=yes debug_symbols=true
34-
35-
- name: Build release template x86_64
36-
cache-name: export_template_release_linux_x86_64
37-
target: template_release
38-
scons-flags: ''
39-
40-
- name: Build debug template x86_64
41-
cache-name: export_template_debug_linux_x86_64
42-
target: template_debug
43-
scons-flags: ''
44+
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
4445

4546
steps:
4647
- name: Maximize build space

.github/workflows/build_macos.yml

Lines changed: 34 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,68 +4,51 @@ on:
44
inputs:
55
godot-version:
66
type: string
7+
build-test-templates:
8+
type: boolean
9+
default: true
710

811
concurrency:
912
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macos_build
1013
cancel-in-progress: true
1114

1215
jobs:
16+
setup-matrix:
17+
runs-on: ubuntu-latest
18+
outputs:
19+
matrix: ${{ steps.set-matrix.outputs.matrix }}
20+
steps:
21+
- id: set-matrix
22+
run: |
23+
MATRIX='{"include":[
24+
{"name":"Build editor release x86_64 (target=editor)","cache-name":"editor_release_macos_x86_64","target":"editor","scons-flags":"arch=x86_64"},
25+
{"name":"Build editor debug x86_64 (target=editor, debug_symbols=true )","cache-name":"editor_debug_macos_x86_64","target":"editor","scons-flags":"arch=x86_64 debug_symbols=true"},
26+
{"name":"Build editor dev x86_64 (target=editor, dev_build=yes, debug_symbols=true )","cache-name":"editor_dev_macos_x86_64","target":"editor","scons-flags":"arch=x86_64 dev_build=yes debug_symbols=true"},
27+
{"name":"Build release template x86_64","cache-name":"export_template_release_macos_x86_64","target":"template_release","scons-flags":"arch=x86_64"},
28+
{"name":"Build debug template x86_64","cache-name":"export_template_debug_macos_x86_64","target":"template_debug","scons-flags":"arch=x86_64"},
29+
{"name":"Build editor release arm64 (target=editor)","cache-name":"editor_release_macos_arm64","target":"editor","scons-flags":"arch=arm64"},
30+
{"name":"Build editor debug arm64 (target=editor, debug_symbols=true )","cache-name":"editor_debug_macos_arm64","target":"editor","scons-flags":"arch=arm64 debug_symbols=true"},
31+
{"name":"Build editor dev arm64 (target=editor, dev_build=yes, debug_symbols=true )","cache-name":"editor_dev_macos_arm64","target":"editor","scons-flags":"arch=arm64 dev_build=yes debug_symbols=true"},
32+
{"name":"Build release template arm64","cache-name":"export_template_release_macos_arm64","target":"template_release","scons-flags":"arch=arm64"},
33+
{"name":"Build debug template arm64","cache-name":"export_template_debug_macos_arm64","target":"template_debug","scons-flags":"arch=arm64"}
34+
]}'
35+
if [ "${{ inputs.build-test-templates }}" == "true" ]; then
36+
MATRIX=$(echo "$MATRIX" | jq -c '.include += [
37+
{"name":"Build release template x86_64 (test)","cache-name":"export_template_test_release_macos_x86_64","target":"template_release","scons-flags":"arch=x86_64 disable_path_overrides=no"},
38+
{"name":"Build debug template x86_64 (test)","cache-name":"export_template_test_debug_macos_x86_64","target":"template_debug","scons-flags":"arch=x86_64 disable_path_overrides=no"},
39+
{"name":"Build release template arm64 (test)","cache-name":"export_template_test_release_macos_arm64","target":"template_release","scons-flags":"arch=arm64 disable_path_overrides=no"},
40+
{"name":"Build debug template arm64 (test)","cache-name":"export_template_test_debug_macos_arm64","target":"template_debug","scons-flags":"arch=arm64 disable_path_overrides=no"}
41+
]')
42+
fi
43+
echo "matrix=$(echo $MATRIX | jq -c '.')" >> $GITHUB_OUTPUT
44+
1345
build-macos:
46+
needs: setup-matrix
1447
runs-on: macos-latest
1548
name: ${{ matrix.name }}
1649
strategy:
1750
fail-fast: false
18-
matrix:
19-
include:
20-
- name: Build editor release x86_64 (target=editor)
21-
cache-name: editor_release_macos_x86_64
22-
target: editor
23-
scons-flags: arch=x86_64
24-
25-
- name: Build editor debug x86_64 (target=editor, debug_symbols=true )
26-
cache-name: editor_debug_macos_x86_64
27-
target: editor
28-
scons-flags: arch=x86_64 debug_symbols=true
29-
30-
- name: Build editor dev x86_64 (target=editor, dev_build=yes, debug_symbols=true )
31-
cache-name: editor_dev_macos_x86_64
32-
target: editor
33-
scons-flags: arch=x86_64 dev_build=yes debug_symbols=true
34-
35-
- name: Build release template x86_64
36-
cache-name: export_template_release_macos_x86_64
37-
target: template_release
38-
scons-flags: arch=x86_64
39-
40-
- name: Build debug template x86_64
41-
cache-name: export_template_debug_macos_x86_64
42-
target: template_debug
43-
scons-flags: arch=x86_64
44-
45-
- name: Build editor release arm64 (target=editor)
46-
cache-name: editor_release_macos_arm64
47-
target: editor
48-
scons-flags: arch=arm64
49-
50-
- name: Build editor debug arm64 (target=editor, debug_symbols=true )
51-
cache-name: editor_debug_macos_arm64
52-
target: editor
53-
scons-flags: arch=arm64 debug_symbols=true
54-
55-
- name: Build editor dev arm64 (target=editor, dev_build=yes, debug_symbols=true )
56-
cache-name: editor_dev_macos_arm64
57-
target: editor
58-
scons-flags: arch=arm64 dev_build=yes debug_symbols=true
59-
60-
- name: Build release template arm64
61-
cache-name: export_template_release_macos_arm64
62-
target: template_release
63-
scons-flags: arch=arm64
64-
65-
- name: Build debug template arm64
66-
cache-name: export_template_debug_macos_arm64
67-
target: template_debug
68-
scons-flags: arch=arm64
51+
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
6952

7053
steps:
7154
- name: Clone Godot Engine

.github/workflows/build_windows.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
inputs:
55
godot-version:
66
type: string
7+
build-test-templates:
8+
type: boolean
9+
default: true
710

811
env:
912
SCONS_CACHE_MSVC_CONFIG: true
@@ -13,43 +16,36 @@ concurrency:
1316
cancel-in-progress: true
1417

1518
jobs:
19+
setup-matrix:
20+
runs-on: ubuntu-latest
21+
outputs:
22+
matrix: ${{ steps.set-matrix.outputs.matrix }}
23+
steps:
24+
- id: set-matrix
25+
run: |
26+
MATRIX='{"include":[
27+
{"name":"Build editor release (target=editor)","cache-name":"editor_release_windows_x86_64","target":"editor","should-clean":true,"scons-flags":""},
28+
{"name":"Build editor debug (target=editor, debug_symbols=true )","cache-name":"editor_debug_windows_x86_64","target":"editor","should-clean":false,"scons-flags":"debug_symbols=true"},
29+
{"name":"Build editor dev (target=editor, dev_build=yes, debug_symbols=true )","cache-name":"editor_dev_windows_x86_64","target":"editor","should-clean":false,"scons-flags":"dev_build=yes debug_symbols=true"},
30+
{"name":"Build release template","cache-name":"export_template_release_windows_x86_64","target":"template_release","should-clean":true,"scons-flags":""},
31+
{"name":"Build debug template","cache-name":"export_template_debug_windows_x86_64","target":"template_debug","should-clean":false,"scons-flags":""}
32+
]}'
33+
if [ "${{ inputs.build-test-templates }}" == "true" ]; then
34+
MATRIX=$(echo "$MATRIX" | jq -c '.include += [
35+
{"name":"Build release template (test)","cache-name":"export_template_test_release_windows_x86_64","target":"template_release","should-clean":true,"scons-flags":"disable_path_overrides=no"},
36+
{"name":"Build debug template (test)","cache-name":"export_template_test_debug_windows_x86_64","target":"template_debug","should-clean":false,"scons-flags":"disable_path_overrides=no"}
37+
]')
38+
fi
39+
echo "matrix=$(echo $MATRIX | jq -c '.')" >> $GITHUB_OUTPUT
40+
1641
build-windows:
42+
needs: setup-matrix
1743
# Windows 10 with latest image
1844
runs-on: windows-latest
1945
name: ${{ matrix.name }}
2046
strategy:
2147
fail-fast: false
22-
matrix:
23-
include:
24-
- name: Build editor release (target=editor)
25-
cache-name: editor_release_windows_x86_64
26-
target: editor
27-
should-clean: true
28-
scons-flags: ''
29-
30-
- name: Build editor debug (target=editor, debug_symbols=true )
31-
cache-name: editor_debug_windows_x86_64
32-
target: editor
33-
should-clean: false
34-
scons-flags: debug_symbols=true
35-
36-
- name: Build editor dev (target=editor, dev_build=yes, debug_symbols=true )
37-
cache-name: editor_dev_windows_x86_64
38-
target: editor
39-
should-clean: false
40-
scons-flags: dev_build=yes debug_symbols=true
41-
42-
- name: Build release template
43-
cache-name: export_template_release_windows_x86_64
44-
target: template_release
45-
should-clean: true
46-
scons-flags: ''
47-
48-
- name: Build debug template
49-
cache-name: export_template_debug_windows_x86_64
50-
target: template_debug
51-
should-clean: false
52-
scons-flags: ''
48+
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
5349

5450
steps:
5551
- name: Clone Godot Engine
@@ -72,6 +68,10 @@ jobs:
7268
- name: Setup python and scons
7369
uses: ./.github/actions/godot-deps
7470

71+
- name: Download Direct3D SDK components
72+
run: |
73+
python ./misc/scripts/install_d3d12_sdk_windows.py
74+
7575
- name: Setup MSVC problem matcher
7676
uses: ammaraskar/msvc-problem-matcher@master
7777

.github/workflows/test_linux_exports.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Download linux x86_64 ${{ matrix.jvm-target }} export template
5151
uses: actions/download-artifact@v4
5252
with:
53-
name: export_template_${{ matrix.jvm-target }}_linux_x86_64
53+
name: export_template_test_${{ matrix.jvm-target }}_linux_x86_64
5454
path: "./"
5555

5656
- name: Prepare export

.github/workflows/test_macos_exports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ jobs:
5050
- name: Download macos export template
5151
uses: actions/download-artifact@v4
5252
with:
53-
name: export_template_all_macos
53+
name: export_template_test_all_macos
5454
path: "./"
5555

5656
- name: Prepare export
5757
run: |
5858
chmod +x harness/tests/bin/godot.*
5959
mkdir -p harness/tests/export
60-
mv export_template_all_macos.zip harness/tests/export_template_all_macos.zip
60+
mv export_template_test_all_macos.zip harness/tests/export_template_all_macos.zip
6161
6262
- name: Build tests project
6363
run: |

0 commit comments

Comments
 (0)