[SCons] Add "optimize" and "debug_symbols" options

optimize = auto|none|debug|speed|size|0|1|2|3
debug_symbol = True|False

optimize == "auto" will produce:
- "debug" for "debug" builds
- "speed" for "release" builds
This commit is contained in:
Fabio Alessandrelli
2022-09-11 19:25:22 +02:00
parent 024b6d2d9e
commit 2bf983e638
8 changed files with 71 additions and 28 deletions

View File

@@ -90,10 +90,10 @@ jobs:
cd test
scons platform=${{ matrix.platform }} target=debug ${{ matrix.flags }} build_library=no
- name: Build test and godot-cpp (release)
- name: Build test and godot-cpp (release, with debug symbols)
run: |
cd test
scons platform=${{ matrix.platform }} target=release ${{ matrix.flags }}
scons platform=${{ matrix.platform }} target=release debug_symbols=yes ${{ matrix.flags }}
- name: Upload artifact
uses: actions/upload-artifact@v3