Compare commits

..

No commits in common. "e9d538ef4791e99c141b0094bb2ea2da7713733c" and "1d2a8bcf96f89cfbb6c065d20a7105b36c828e89" have entirely different histories.

1 changed files with 26 additions and 30 deletions

View File

@ -41,7 +41,7 @@ on:
# Global Settings # Global Settings
env: env:
SCONS_CACHE_LIMIT: 4096 SCONS_CACHE_LIMIT: 4096
SCONSFLAGS: use_mingw=yes dev_build=no verbose=yes SCONSFLAGS: use_mingw=yes dev_build=no debug_symbols=yes symbols_visibility=visible verbose=yes
EM_VERSION: 3.1.45 EM_VERSION: 3.1.45
EM_CACHE_FOLDER: "emsdk-cache" EM_CACHE_FOLDER: "emsdk-cache"
GODOT_VERSION: 4.3-stable GODOT_VERSION: 4.3-stable
@ -61,7 +61,6 @@ jobs:
platform: linux platform: linux
target: template_release target: template_release
arch: x86_64 arch: x86_64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.linux.template_release.x86_64.so bin: liblimboai.linux.template_release.x86_64.so
should-build: true should-build: true
@ -70,7 +69,6 @@ jobs:
platform: linux platform: linux
target: editor target: editor
arch: x86_64 arch: x86_64
debug-symbols: true
bin: liblimboai.linux.editor.x86_64.so bin: liblimboai.linux.editor.x86_64.so
should-build: true should-build: true
@ -79,7 +77,6 @@ jobs:
platform: windows platform: windows
target: template_release target: template_release
arch: x86_64 arch: x86_64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.windows.template_release.x86_64.dll bin: liblimboai.windows.template_release.x86_64.dll
should-build: true should-build: true
@ -88,7 +85,6 @@ jobs:
platform: windows platform: windows
target: editor target: editor
arch: x86_64 arch: x86_64
debug-symbols: true
bin: liblimboai.windows.editor.x86_64.dll bin: liblimboai.windows.editor.x86_64.dll
should-build: true should-build: true
@ -97,7 +93,6 @@ jobs:
platform: macos platform: macos
target: template_release target: template_release
arch: universal arch: universal
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.macos.template_release bin: liblimboai.macos.template_release
should-build: true should-build: true
@ -106,7 +101,6 @@ jobs:
platform: macos platform: macos
target: editor target: editor
arch: universal arch: universal
debug-symbols: true
bin: liblimboai.macos.editor bin: liblimboai.macos.editor
should-build: true should-build: true
@ -115,7 +109,6 @@ jobs:
platform: web platform: web
target: template_release target: template_release
arch: wasm32 arch: wasm32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.web.template_release.wasm32.wasm bin: liblimboai.web.template_release.wasm32.wasm
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -124,7 +117,6 @@ jobs:
platform: web platform: web
target: template_debug target: template_debug
arch: wasm32 arch: wasm32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.web.template_debug.wasm32.wasm bin: liblimboai.web.template_debug.wasm32.wasm
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -133,7 +125,6 @@ jobs:
platform: android platform: android
target: template_release target: template_release
arch: arm64 arch: arm64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_release.arm64.so bin: liblimboai.android.template_release.arm64.so
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -142,7 +133,6 @@ jobs:
platform: android platform: android
target: template_debug target: template_debug
arch: arm64 arch: arm64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_debug.arm64.so bin: liblimboai.android.template_debug.arm64.so
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -151,7 +141,6 @@ jobs:
platform: android platform: android
target: template_release target: template_release
arch: arm32 arch: arm32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_release.arm32.so bin: liblimboai.android.template_release.arm32.so
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -160,7 +149,6 @@ jobs:
platform: android platform: android
target: template_debug target: template_debug
arch: arm32 arch: arm32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_debug.arm32.so bin: liblimboai.android.template_debug.arm32.so
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -169,7 +157,6 @@ jobs:
platform: android platform: android
target: template_release target: template_release
arch: x86_64 arch: x86_64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_release.x86_64.so bin: liblimboai.android.template_release.x86_64.so
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -178,7 +165,6 @@ jobs:
platform: android platform: android
target: template_debug target: template_debug
arch: x86_64 arch: x86_64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_debug.x86_64.so bin: liblimboai.android.template_debug.x86_64.so
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -187,7 +173,6 @@ jobs:
platform: android platform: android
target: template_release target: template_release
arch: x86_32 arch: x86_32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_release.x86_32.so bin: liblimboai.android.template_release.x86_32.so
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -196,7 +181,6 @@ jobs:
platform: android platform: android
target: template_debug target: template_debug
arch: x86_32 arch: x86_32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_debug.x86_32.so bin: liblimboai.android.template_debug.x86_32.so
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -205,7 +189,6 @@ jobs:
platform: ios platform: ios
target: template_release target: template_release
arch: arm64 arch: arm64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.ios.template_release.arm64.dylib bin: liblimboai.ios.template_release.arm64.dylib
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -214,7 +197,6 @@ jobs:
platform: ios platform: ios
target: template_debug target: template_debug
arch: arm64 arch: arm64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.ios.template_debug.arm64.dylib bin: liblimboai.ios.template_debug.arm64.dylib
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -223,7 +205,6 @@ jobs:
platform: ios platform: ios
target: template_release target: template_release
arch: universal arch: universal
debug-symbols: ${{ inputs.debug-symbols }}
scons-flags: ios_simulator=yes scons-flags: ios_simulator=yes
bin: liblimboai.ios.template_release.universal.simulator.dylib bin: liblimboai.ios.template_release.universal.simulator.dylib
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -233,7 +214,6 @@ jobs:
platform: ios platform: ios
target: template_debug target: template_debug
arch: universal arch: universal
debug-symbols: ${{ inputs.debug-symbols }}
scons-flags: ios_simulator=yes scons-flags: ios_simulator=yes
bin: liblimboai.ios.template_debug.universal.simulator.dylib bin: liblimboai.ios.template_debug.universal.simulator.dylib
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
@ -294,6 +274,7 @@ jobs:
if: matrix.opts.platform == 'web' if: matrix.opts.platform == 'web'
run: | run: |
emcc -v emcc -v
llvm-objcopy --help
- name: Set up scons - name: Set up scons
if: matrix.opts.platform != 'linux' if: matrix.opts.platform != 'linux'
@ -322,11 +303,11 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: ${{github.workspace}}/.scons_cache/ path: ${{github.workspace}}/.scons_cache/
key: ${{matrix.opts.bin}}-${{matrix.opts.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}} key: ${{matrix.opts.bin}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
restore-keys: | restore-keys: |
${{matrix.opts.bin}}-${{matrix.opts.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}} ${{matrix.opts.bin}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
${{matrix.opts.bin}}-${{matrix.opts.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}} ${{matrix.opts.bin}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}
${{matrix.opts.bin}}-${{matrix.opts.debug-symbols}}-${{inputs.godot-cpp-ref}} ${{matrix.opts.bin}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}
- name: Set up MinGW - name: Set up MinGW
if: matrix.opts.platform == 'windows' if: matrix.opts.platform == 'windows'
@ -338,13 +319,13 @@ jobs:
shell: bash shell: bash
env: env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/ SCONS_CACHE: ${{github.workspace}}/.scons_cache/
DEBUG_FLAGS: ${{ matrix.opts.debug-symbols && 'debug_symbols=yes symbols_visibility=visible' || 'debug_symbols=no' }} DEBUG_FLAGS: ${{ inputs.debug-symbols && 'debug_symbols=yes symbols_visibility=visible' || 'debug_symbols=no' }}
run: | run: |
PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
scons platform=${{matrix.opts.platform}} target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} ${{env.DEBUG_FLAGS}} ${{matrix.opts.scons-flags}} ${{env.SCONSFLAGS}} scons platform=${{matrix.opts.platform}} target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} ${{env.DEBUG_FLAGS}} ${{matrix.opts.scons-flags}} ${{env.SCONSFLAGS}}
- name: Split debug symbols (Linux) - name: Split debug symbols (Linux)
if: matrix.opts.debug-symbols && matrix.opts.platform == 'linux' if: inputs.debug-symbols && matrix.opts.platform == 'linux'
shell: bash shell: bash
run: | run: |
cd demo/addons/limboai/bin/ cd demo/addons/limboai/bin/
@ -355,7 +336,7 @@ jobs:
nm ${{matrix.opts.bin}} nm ${{matrix.opts.bin}}
- name: Split debug symbols (Windows) - name: Split debug symbols (Windows)
if: matrix.opts.debug-symbols && matrix.opts.platform == 'windows' if: inputs.debug-symbols && matrix.opts.platform == 'windows'
shell: bash shell: bash
run: | run: |
cd demo/addons/limboai/bin/ cd demo/addons/limboai/bin/
@ -365,7 +346,7 @@ jobs:
x86_64-w64-mingw32-nm ${{matrix.opts.bin}} x86_64-w64-mingw32-nm ${{matrix.opts.bin}}
- name: Split debug symbols (macOS & iOS) - name: Split debug symbols (macOS & iOS)
if: matrix.opts.debug-symbols && (matrix.opts.platform == 'macos' || matrix.opts.platform == 'ios') if: inputs.debug-symbols && (matrix.opts.platform == 'macos' || matrix.opts.platform == 'ios')
shell: bash shell: bash
run: | run: |
cd demo/addons/limboai/bin/ cd demo/addons/limboai/bin/
@ -376,6 +357,20 @@ jobs:
strip -x ${{matrix.opts.bin}} strip -x ${{matrix.opts.bin}}
nm ${{matrix.opts.bin}} nm ${{matrix.opts.bin}}
- name: Split debug symbols (Web)
if: inputs.debug-symbols && matrix.opts.platform == 'web'
shell: bash
run: |
emstrip --only-keep-debug -o ${{matrix.opts.bin}}.debug ${{matrix.opts.bin}}
emstrip --strip-debug ${{matrix.opts.bin}}
llvm-objcopy --add-gnu-debuglink ${{matrix.opts.bin}}.debug ${{matrix.opts.bin}}
- name: Split debug symbols (Android)
if: inputs.debug-symbols && matrix.opts.platform == 'android'
shell: bash
run: |
cd demo/addons/limboai/bin/
- name: Prepare artifact - name: Prepare artifact
shell: bash shell: bash
run: | run: |
@ -401,7 +396,7 @@ jobs:
!out/**/*.dSYM !out/**/*.dSYM
- name: Upload debug symbols - name: Upload debug symbols
if: matrix.opts.debug-symbols if: inputs.debug-symbols
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: tmp-gdextension-symbols.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}} name: tmp-gdextension-symbols.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}}
@ -424,6 +419,7 @@ jobs:
delete-merged: true delete-merged: true
- name: Merge debug symbols artifacts - name: Merge debug symbols artifacts
if: inputs.debug-symbols
uses: actions/upload-artifact/merge@v4 uses: actions/upload-artifact/merge@v4
with: with:
name: ${{needs.gdextension.outputs.name-prefix}}.debug-symbols name: ${{needs.gdextension.outputs.name-prefix}}.debug-symbols