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
env:
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_CACHE_FOLDER: "emsdk-cache"
GODOT_VERSION: 4.3-stable
@ -61,7 +61,6 @@ jobs:
platform: linux
target: template_release
arch: x86_64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.linux.template_release.x86_64.so
should-build: true
@ -70,7 +69,6 @@ jobs:
platform: linux
target: editor
arch: x86_64
debug-symbols: true
bin: liblimboai.linux.editor.x86_64.so
should-build: true
@ -79,7 +77,6 @@ jobs:
platform: windows
target: template_release
arch: x86_64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.windows.template_release.x86_64.dll
should-build: true
@ -88,7 +85,6 @@ jobs:
platform: windows
target: editor
arch: x86_64
debug-symbols: true
bin: liblimboai.windows.editor.x86_64.dll
should-build: true
@ -97,7 +93,6 @@ jobs:
platform: macos
target: template_release
arch: universal
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.macos.template_release
should-build: true
@ -106,7 +101,6 @@ jobs:
platform: macos
target: editor
arch: universal
debug-symbols: true
bin: liblimboai.macos.editor
should-build: true
@ -115,7 +109,6 @@ jobs:
platform: web
target: template_release
arch: wasm32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.web.template_release.wasm32.wasm
should-build: ${{ !inputs.test-build }}
@ -124,7 +117,6 @@ jobs:
platform: web
target: template_debug
arch: wasm32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.web.template_debug.wasm32.wasm
should-build: ${{ !inputs.test-build }}
@ -133,7 +125,6 @@ jobs:
platform: android
target: template_release
arch: arm64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_release.arm64.so
should-build: ${{ !inputs.test-build }}
@ -142,7 +133,6 @@ jobs:
platform: android
target: template_debug
arch: arm64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_debug.arm64.so
should-build: ${{ !inputs.test-build }}
@ -151,7 +141,6 @@ jobs:
platform: android
target: template_release
arch: arm32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_release.arm32.so
should-build: ${{ !inputs.test-build }}
@ -160,7 +149,6 @@ jobs:
platform: android
target: template_debug
arch: arm32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_debug.arm32.so
should-build: ${{ !inputs.test-build }}
@ -169,7 +157,6 @@ jobs:
platform: android
target: template_release
arch: x86_64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_release.x86_64.so
should-build: ${{ !inputs.test-build }}
@ -178,7 +165,6 @@ jobs:
platform: android
target: template_debug
arch: x86_64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_debug.x86_64.so
should-build: ${{ !inputs.test-build }}
@ -187,7 +173,6 @@ jobs:
platform: android
target: template_release
arch: x86_32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_release.x86_32.so
should-build: ${{ !inputs.test-build }}
@ -196,7 +181,6 @@ jobs:
platform: android
target: template_debug
arch: x86_32
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.android.template_debug.x86_32.so
should-build: ${{ !inputs.test-build }}
@ -205,7 +189,6 @@ jobs:
platform: ios
target: template_release
arch: arm64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.ios.template_release.arm64.dylib
should-build: ${{ !inputs.test-build }}
@ -214,7 +197,6 @@ jobs:
platform: ios
target: template_debug
arch: arm64
debug-symbols: ${{ inputs.debug-symbols }}
bin: liblimboai.ios.template_debug.arm64.dylib
should-build: ${{ !inputs.test-build }}
@ -223,7 +205,6 @@ jobs:
platform: ios
target: template_release
arch: universal
debug-symbols: ${{ inputs.debug-symbols }}
scons-flags: ios_simulator=yes
bin: liblimboai.ios.template_release.universal.simulator.dylib
should-build: ${{ !inputs.test-build }}
@ -233,7 +214,6 @@ jobs:
platform: ios
target: template_debug
arch: universal
debug-symbols: ${{ inputs.debug-symbols }}
scons-flags: ios_simulator=yes
bin: liblimboai.ios.template_debug.universal.simulator.dylib
should-build: ${{ !inputs.test-build }}
@ -294,6 +274,7 @@ jobs:
if: matrix.opts.platform == 'web'
run: |
emcc -v
llvm-objcopy --help
- name: Set up scons
if: matrix.opts.platform != 'linux'
@ -322,11 +303,11 @@ jobs:
uses: actions/cache@v4
with:
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: |
${{matrix.opts.bin}}-${{matrix.opts.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}}-${{matrix.opts.debug-symbols}}-${{inputs.godot-cpp-ref}}
${{matrix.opts.bin}}-${{inputs.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}}
${{matrix.opts.bin}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}
- name: Set up MinGW
if: matrix.opts.platform == 'windows'
@ -338,13 +319,13 @@ jobs:
shell: bash
env:
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: |
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}}
- name: Split debug symbols (Linux)
if: matrix.opts.debug-symbols && matrix.opts.platform == 'linux'
if: inputs.debug-symbols && matrix.opts.platform == 'linux'
shell: bash
run: |
cd demo/addons/limboai/bin/
@ -355,7 +336,7 @@ jobs:
nm ${{matrix.opts.bin}}
- name: Split debug symbols (Windows)
if: matrix.opts.debug-symbols && matrix.opts.platform == 'windows'
if: inputs.debug-symbols && matrix.opts.platform == 'windows'
shell: bash
run: |
cd demo/addons/limboai/bin/
@ -365,7 +346,7 @@ jobs:
x86_64-w64-mingw32-nm ${{matrix.opts.bin}}
- 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
run: |
cd demo/addons/limboai/bin/
@ -376,6 +357,20 @@ jobs:
strip -x ${{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
shell: bash
run: |
@ -401,7 +396,7 @@ jobs:
!out/**/*.dSYM
- name: Upload debug symbols
if: matrix.opts.debug-symbols
if: inputs.debug-symbols
uses: actions/upload-artifact@v4
with:
name: tmp-gdextension-symbols.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}}
@ -424,6 +419,7 @@ jobs:
delete-merged: true
- name: Merge debug symbols artifacts
if: inputs.debug-symbols
uses: actions/upload-artifact/merge@v4
with:
name: ${{needs.gdextension.outputs.name-prefix}}.debug-symbols