Skip to content

Commit 2c325ea

Browse files
authored
Merge pull request #150 from V-Sekai/gd4
2 parents 5cc9c4c + 6bcd1fa commit 2c325ea

File tree

12 files changed

+263
-122
lines changed

12 files changed

+263
-122
lines changed

.github/actions/godot-build/action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Build Godot
22
description: Build Godot with the provided options.
33
inputs:
44
target:
5-
description: The scons target (debug/release_debug/release).
6-
default: debug
5+
description: The scons target (debug/editor/release).
6+
default: editor
77
tools:
88
description: If tools are to be built.
99
default: false
@@ -20,7 +20,7 @@ inputs:
2020
default: ${{ github.workspace }}/.scons-cache/
2121
scons-cache-limit:
2222
description: The scons cache size limit.
23-
default: 4096
23+
default: 7168
2424
shell:
2525
description: the shell to run this under
2626
default: sh
@@ -35,7 +35,8 @@ runs:
3535
SCONS_CACHE_LIMIT: ${{ inputs.scons-cache-limit }}
3636
run: |
3737
echo "Building with flags:" ${{ env.SCONSFLAGS }}
38-
scons p=${{ inputs.platform }} target=${{ inputs.target }} tools=${{ inputs.tools }} tests=${{ inputs.tests }} --jobs=2 ${{ env.SCONSFLAGS }}
38+
if [ "${{ inputs.target }}" != "editor" ]; then rm -rf editor; fi # Ensure we don't include editor code.
39+
scons platform=${{ inputs.platform }} target=${{ inputs.target }} tools=${{ inputs.tools }} tests=${{ inputs.tests }} --jobs=2 ${{ env.SCONSFLAGS }}
3940
ls -l bin/
4041
if: inputs.shell == 'sh'
4142
- name: Scons Build
@@ -46,6 +47,7 @@ runs:
4647
SCONS_CACHE_LIMIT: ${{ inputs.scons-cache-limit }}
4748
run: |
4849
echo "Building with flags:" ${{ env.SCONSFLAGS }}
49-
scons p=${{ inputs.platform }} target=${{ inputs.target }} tools=${{ inputs.tools }} tests=${{ inputs.tests }} --jobs=2 ${{ env.SCONSFLAGS }}
50+
if [ "${{ inputs.target }}" != "editor" ]; then rm -rf editor; rm -rf tools; fi # Ensure we don't include editor code.
51+
scons platform=${{ inputs.platform }} target=${{ inputs.target }} tools=${{ inputs.tools }} tests=${{ inputs.tests }} --jobs=2 ${{ env.SCONSFLAGS }}
5052
ls -l bin/
5153
if: inputs.shell == 'msys2 {0}'

.github/workflows/android_builds.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: 🤖 Android Builds
33
- push
44
- pull_request
55
env:
6-
GODOT_BASE_BRANCH: 3.5-stable
7-
SCONSFLAGS: ' verbose=yes debug_symbols=no'
6+
GODOT_BASE_BRANCH: "4.0"
7+
SCONSFLAGS: verbose=yes warnings=extra debug_symbols=no module_text_server_fb_enabled=yes
88
concurrency:
99
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-android
1010
cancel-in-progress: true
@@ -21,37 +21,38 @@ jobs:
2121
- name: Checkout ECMAScript
2222
uses: actions/checkout@v2
2323
with:
24-
path: ${{github.workspace}}/modules/ECMAScript/
24+
path: ${{github.workspace}}/modules/javascript/
2525
- name: Make apt sources.list use the default Ubuntu repositories
2626
run: |
27-
sudo rm -f /etc/apt/sources.list.d/*
28-
sudo cp -f misc/ci/sources.list /etc/apt/sources.list
27+
# sudo rm -f /etc/apt/sources.list.d/*
28+
# sudo cp -f misc/ci/sources.list /etc/apt/sources.list
2929
sudo apt-get update
3030
- name: Set up Java 11
31-
uses: actions/setup-java@v1
31+
uses: actions/setup-java@v3
3232
with:
33+
distribution: temurin
3334
java-version: 11
3435
- name: Setup Godot build cache
3536
uses: ./.github/actions/godot-cache
3637
continue-on-error: true
3738
- name: Setup python and scons
38-
uses: ./modules/ECMAScript/.github/actions/godot-deps
39+
uses: ./modules/javascript/.github/actions/godot-deps
3940
with:
4041
shell: sh
4142
- name: Compilation (armv7)
42-
uses: ./modules/ECMAScript/.github/actions/godot-build
43+
uses: ./modules/javascript/.github/actions/godot-build
4344
with:
4445
sconsflags: ${{ env.SCONSFLAGS }} android_arch=armv7
4546
platform: android
46-
target: release
47+
target: template_release
4748
tools: false
4849
shell: sh
4950
- name: Compilation (arm64v8)
50-
uses: ./modules/ECMAScript/.github/actions/godot-build
51+
uses: ./modules/javascript/.github/actions/godot-build
5152
with:
5253
sconsflags: ${{ env.SCONSFLAGS }} android_arch=arm64v8
5354
platform: android
54-
target: release
55+
target: template_release
5556
tools: false
5657
shell: sh
5758
- name: Generate Godot templates

.github/workflows/ios_builds.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: 🍏 iOS Builds
33
- push
44
- pull_request
55
env:
6-
GODOT_BASE_BRANCH: 3.5-stable
7-
SCONSFLAGS: ' verbose=yes debug_symbols=no'
6+
GODOT_BASE_BRANCH: "4.0"
7+
SCONSFLAGS: verbose=yes warnings=extra debug_symbols=no module_text_server_fb_enabled=yes
88
concurrency:
99
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-ios
1010
cancel-in-progress: true
@@ -21,20 +21,20 @@ jobs:
2121
- name: Checkout ECMAScript
2222
uses: actions/checkout@v2
2323
with:
24-
path: ${{github.workspace}}/modules/ECMAScript/
24+
path: ${{github.workspace}}/modules/javascript/
2525
- name: Setup Godot build cache
2626
uses: ./.github/actions/godot-cache
2727
continue-on-error: true
2828
- name: Setup python and scons
29-
uses: ./modules/ECMAScript/.github/actions/godot-deps
29+
uses: ./modules/javascript/.github/actions/godot-deps
3030
with:
3131
shell: sh
3232
- name: Compilation (armv7)
33-
uses: ./modules/ECMAScript/.github/actions/godot-build
33+
uses: ./modules/javascript/.github/actions/godot-build
3434
with:
3535
sconsflags: ${{ env.SCONSFLAGS }}
36-
platform: iphone
37-
target: release
36+
platform: ios
37+
target: template_release
3838
tools: false
3939
shell: sh
4040
- name: Upload artifact

.github/workflows/javascript_builds.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ name: 🌐 JavaScript Builds
33
- push
44
- pull_request
55
env:
6-
GODOT_BASE_BRANCH: 3.5-stable
7-
SCONSFLAGS: ' verbose=yes debug_symbols=no'
8-
EM_VERSION: 2.0.25
9-
EM_CACHE_FOLDER: emsdk-cache
6+
GODOT_BASE_BRANCH: "4.0"
7+
SCONSFLAGS: verbose=yes warnings=extra debug_symbols=no
8+
EM_VERSION: 3.1.18
9+
EM_CACHE_FOLDER: "emsdk-cache"
10+
1011
concurrency:
1112
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-javascript
1213
cancel-in-progress: true
@@ -23,15 +24,15 @@ jobs:
2324
- name: Checkout ECMAScript
2425
uses: actions/checkout@v2
2526
with:
26-
path: ${{github.workspace}}/modules/ECMAScript/
27+
path: ${{github.workspace}}/modules/javascript/
2728
- name: Load Emscripten cache
2829
id: javascript-template-emscripten-cache
2930
uses: actions/cache@v2
3031
with:
3132
path: ${{env.EM_CACHE_FOLDER}}
3233
key: ${{env.EM_VERSION}}-${{github.job}}
3334
- name: Set up Emscripten latest
34-
uses: mymindstorm/setup-emsdk@v10
35+
uses: mymindstorm/setup-emsdk@v12
3536
with:
3637
version: ${{env.EM_VERSION}}
3738
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
@@ -42,16 +43,16 @@ jobs:
4243
uses: ./.github/actions/godot-cache
4344
continue-on-error: true
4445
- name: Setup python and scons
45-
uses: ./modules/ECMAScript/.github/actions/godot-deps
46+
uses: ./modules/javascript/.github/actions/godot-deps
4647
with:
4748
shell: sh
4849
- name: Compilation
49-
uses: ./modules/ECMAScript/.github/actions/godot-build
50+
uses: ./modules/javascript/.github/actions/godot-build
5051
with:
5152
sconsflags: ${{ env.SCONSFLAGS }}
52-
platform: javascript
53-
target: release
54-
tools: false
53+
platform: web
54+
target: template_release
55+
tools: falsed
5556
shell: sh
5657
- name: Upload artifact
5758
uses: ./.github/actions/upload-artifact

0 commit comments

Comments
 (0)