Compare commits
2 Commits
234663b025
...
6f110dc6f1
Author | SHA1 | Date |
---|---|---|
|
6f110dc6f1 | |
|
db50665c5a |
|
@ -15,7 +15,7 @@ on:
|
|||
type: boolean
|
||||
default: false
|
||||
debug-symbols:
|
||||
description: All builds with debug symbols
|
||||
description: Build with debug symbols
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
|
@ -34,15 +34,16 @@ on:
|
|||
type: boolean
|
||||
default: false
|
||||
debug-symbols:
|
||||
description: All builds with debug symbols
|
||||
description: Build with debug symbols
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
# Global Settings
|
||||
env:
|
||||
SCONS_CACHE_LIMIT: 4096
|
||||
SCONSFLAGS: dev_build=no verbose=yes
|
||||
SCONSFLAGS: use_mingw=yes dev_build=no verbose=yes
|
||||
EM_VERSION: 3.1.45
|
||||
EM_CACHE_FOLDER: "emsdk-cache"
|
||||
GODOT_VERSION: 4.3-stable
|
||||
|
||||
jobs:
|
||||
|
@ -74,7 +75,7 @@ jobs:
|
|||
should-build: true
|
||||
|
||||
- name: 🪟 Windows (x86_64, release)
|
||||
runner: windows-latest
|
||||
runner: ubuntu-latest
|
||||
platform: windows
|
||||
target: template_release
|
||||
arch: x86_64
|
||||
|
@ -83,7 +84,7 @@ jobs:
|
|||
should-build: true
|
||||
|
||||
- name: 🪟 Windows (x86_64, debug)
|
||||
runner: windows-latest
|
||||
runner: ubuntu-latest
|
||||
platform: windows
|
||||
target: editor
|
||||
arch: x86_64
|
||||
|
@ -275,14 +276,21 @@ jobs:
|
|||
python-version: "3.x"
|
||||
architecture: "x64"
|
||||
|
||||
- name: Set up Emscripten (Web)
|
||||
- name: Set up Emscripten cache
|
||||
if: matrix.opts.platform == 'web'
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{env.EM_CACHE_FOLDER}}
|
||||
key: ${{env.EM_VERSION}}-${{runner.os}}-libs
|
||||
|
||||
- name: Set up Emscripten
|
||||
if: matrix.opts.platform == 'web'
|
||||
uses: mymindstorm/setup-emsdk@v14
|
||||
with:
|
||||
version: ${{env.EM_VERSION}}
|
||||
no-cache: true
|
||||
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
|
||||
|
||||
- name: Verify Emscripten setup (Web)
|
||||
- name: Verify Emscripten setup
|
||||
if: matrix.opts.platform == 'web'
|
||||
run: |
|
||||
emcc -v
|
||||
|
@ -295,7 +303,7 @@ jobs:
|
|||
python --version
|
||||
scons --version
|
||||
|
||||
- name: Set up Java 17 (Android)
|
||||
- name: Set up Java 17
|
||||
if: matrix.opts.platform == 'android'
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
|
@ -309,14 +317,6 @@ jobs:
|
|||
ndk-version: r23c
|
||||
link-to-sdk: true
|
||||
|
||||
- name: Set up MSVC problem matcher (Windows)
|
||||
if: matrix.opts.platform == 'windows'
|
||||
uses: ammaraskar/msvc-problem-matcher@1ebcb382869bfdc2cc645e8a2a43b6d319ea1cc0 # 0.3.0
|
||||
|
||||
- name: Set up GCC problem matcher (Linux)
|
||||
if: matrix.opts.platform == 'linux'
|
||||
uses: ammaraskar/gcc-problem-matcher@0f9c86f9e693db67dacf53986e1674de5f2e5f28 # 0.3.0
|
||||
|
||||
- name: Set up scons cache
|
||||
if: inputs.test-build # ! Only cache test/PR builds
|
||||
uses: actions/cache@v4
|
||||
|
@ -328,6 +328,12 @@ jobs:
|
|||
${{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}}
|
||||
|
||||
- name: Set up MinGW
|
||||
if: matrix.opts.platform == 'windows'
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install g++-mingw-w64-x86-64-posix
|
||||
|
||||
- name: Compilation
|
||||
shell: bash
|
||||
env:
|
||||
|
@ -348,6 +354,16 @@ jobs:
|
|||
readelf --debug-dump=links ${{matrix.opts.bin}}
|
||||
nm ${{matrix.opts.bin}}
|
||||
|
||||
- name: Split debug symbols (Windows)
|
||||
if: matrix.opts.debug-symbols && matrix.opts.platform == 'windows'
|
||||
shell: bash
|
||||
run: |
|
||||
cd demo/addons/limboai/bin/
|
||||
x86_64-w64-mingw32-objcopy --only-keep-debug ${{matrix.opts.bin}} ${{matrix.opts.bin}}.debug
|
||||
x86_64-w64-mingw32-objcopy --add-gnu-debuglink ${{matrix.opts.bin}}.debug ${{matrix.opts.bin}}
|
||||
x86_64-w64-mingw32-strip --strip-debug ${{matrix.opts.bin}}
|
||||
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')
|
||||
shell: bash
|
||||
|
|
Loading…
Reference in New Issue