Compare commits
2 Commits
1d2a8bcf96
...
e9d538ef47
Author | SHA1 | Date |
---|---|---|
|
e9d538ef47 | |
|
12f94db55a |
|
@ -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 debug_symbols=yes symbols_visibility=visible verbose=yes
|
SCONSFLAGS: use_mingw=yes dev_build=no 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,6 +61,7 @@ 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
|
||||||
|
|
||||||
|
@ -69,6 +70,7 @@ 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
|
||||||
|
|
||||||
|
@ -77,6 +79,7 @@ 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
|
||||||
|
|
||||||
|
@ -85,6 +88,7 @@ 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
|
||||||
|
|
||||||
|
@ -93,6 +97,7 @@ 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
|
||||||
|
|
||||||
|
@ -101,6 +106,7 @@ 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
|
||||||
|
|
||||||
|
@ -109,6 +115,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -117,6 +124,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -125,6 +133,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -133,6 +142,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -141,6 +151,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -149,6 +160,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -157,6 +169,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -165,6 +178,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -173,6 +187,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -181,6 +196,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -189,6 +205,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -197,6 +214,7 @@ 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 }}
|
||||||
|
|
||||||
|
@ -205,6 +223,7 @@ 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 }}
|
||||||
|
@ -214,6 +233,7 @@ 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 }}
|
||||||
|
@ -274,7 +294,6 @@ 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'
|
||||||
|
@ -303,11 +322,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}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
key: ${{matrix.opts.bin}}-${{matrix.opts.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{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}}-${{env.LIMBOAI_VERSION}}
|
||||||
${{matrix.opts.bin}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}
|
${{matrix.opts.bin}}-${{matrix.opts.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}
|
||||||
${{matrix.opts.bin}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}
|
${{matrix.opts.bin}}-${{matrix.opts.debug-symbols}}-${{inputs.godot-cpp-ref}}
|
||||||
|
|
||||||
- name: Set up MinGW
|
- name: Set up MinGW
|
||||||
if: matrix.opts.platform == 'windows'
|
if: matrix.opts.platform == 'windows'
|
||||||
|
@ -319,13 +338,13 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
DEBUG_FLAGS: ${{ inputs.debug-symbols && 'debug_symbols=yes symbols_visibility=visible' || 'debug_symbols=no' }}
|
DEBUG_FLAGS: ${{ matrix.opts.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: inputs.debug-symbols && matrix.opts.platform == 'linux'
|
if: matrix.opts.debug-symbols && matrix.opts.platform == 'linux'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd demo/addons/limboai/bin/
|
cd demo/addons/limboai/bin/
|
||||||
|
@ -336,7 +355,7 @@ jobs:
|
||||||
nm ${{matrix.opts.bin}}
|
nm ${{matrix.opts.bin}}
|
||||||
|
|
||||||
- name: Split debug symbols (Windows)
|
- name: Split debug symbols (Windows)
|
||||||
if: inputs.debug-symbols && matrix.opts.platform == 'windows'
|
if: matrix.opts.debug-symbols && matrix.opts.platform == 'windows'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd demo/addons/limboai/bin/
|
cd demo/addons/limboai/bin/
|
||||||
|
@ -346,7 +365,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: inputs.debug-symbols && (matrix.opts.platform == 'macos' || matrix.opts.platform == 'ios')
|
if: matrix.opts.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/
|
||||||
|
@ -357,20 +376,6 @@ 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: |
|
||||||
|
@ -396,7 +401,7 @@ jobs:
|
||||||
!out/**/*.dSYM
|
!out/**/*.dSYM
|
||||||
|
|
||||||
- name: Upload debug symbols
|
- name: Upload debug symbols
|
||||||
if: inputs.debug-symbols
|
if: matrix.opts.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}}
|
||||||
|
@ -419,7 +424,6 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue