Skip to content

Commit 98551bf

Browse files
committed
more trying
1 parent ca58fb3 commit 98551bf

File tree

4 files changed

+32
-15
lines changed

4 files changed

+32
-15
lines changed

.github/actions/setup-godot-cpp/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ inputs:
2222
ndk-version:
2323
default: r23c
2424
description: Android NDK version.
25+
buildtool:
26+
description: scons or cmake
2527
scons-version:
2628
default: 4.4.0
2729
description: SCons version.
2830

31+
2932
runs:
3033
using: composite
3134
steps:
@@ -55,8 +58,13 @@ runs:
5558
version: ${{ inputs.mingw-version }}
5659

5760
- name: Setup SCons
61+
if: ${{ inputs.buildtool == 'scons' }}
5862
shell: bash
5963
run: |
6064
python -c "import sys; print(sys.version)"
6165
python -m pip install scons==${{ inputs.scons-version }}
6266
scons --version
67+
68+
- name: Install Ninja
69+
if: ${{ inputs.buildtool == 'cmake' }}
70+
uses: ashutoshvarma/setup-ninja@master

.github/workflows/ci-cmake.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,26 @@ jobs:
2121
runs-on: ${{ matrix.os }}
2222
env:
2323
EM_VERSION: 3.1.39
24-
config-flags: -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DGODOTCPP_ENABLE_TESTING=ON -DGODOTCPP_BUILD_PROFILE="test/build_profile.json"
24+
config-flags:
25+
-DCMAKE_C_COMPILER_LAUNCHER=sccache
26+
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache
27+
-DGODOTCPP_ENABLE_TESTING=ON
28+
-DGODOTCPP_BUILD_PROFILE="test/build_profile.json"
2529
SCCACHE_GHA_ENABLED: "true"
2630

2731
strategy:
2832
fail-fast: false
2933
matrix:
3034
include:
31-
- name: 🐧 Linux (GCC)
35+
- name: 🐧 Linux (GCC, Makefiles)
3236
os: ubuntu-22.04
3337
platform: linux
3438
config-flags: -DCMAKE_BUILD_TYPE=Release
3539
artifact-name: godot-cpp-linux-glibc2.27-x86_64-release.cmake
3640
artifact-path: cmake-build/bin/libgodot-cpp.linux.template_release.x86_64.a
3741
run-tests: true
3842

39-
- name: 🐧 Linux (GCC, Double Precision)
43+
- name: 🐧 Linux (GCC, Makefiles, Double Precision)
4044
os: ubuntu-22.04
4145
platform: linux
4246
config-flags: -DCMAKE_BUILD_TYPE=Release -DGODOTCPP_PRECISION=double
@@ -54,7 +58,7 @@ jobs:
5458
artifact-path: cmake-build/bin/libgodot-cpp.windows.template_release.x86_64.lib
5559
run-tests: false
5660

57-
- name: 🏁 Windows (x86_64, MinGW)
61+
- name: 🏁 Windows (x86_64, MinGW, Ninja)
5862
os: windows-2019
5963
platform: windows
6064
compiler: mingw
@@ -74,7 +78,10 @@ jobs:
7478
- name: 🤖 Android (arm64)
7579
os: ubuntu-22.04
7680
platform: android
77-
config-flags: -G Ninja -DCMAKE_BUILD_TYPE=Release --toolchain ${ANDROID_HOME}/ndk/23.2.8568313/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=21
81+
config-flags:
82+
-G Ninja -DCMAKE_BUILD_TYPE=Release
83+
--toolchain ${ANDROID_HOME}/ndk/23.2.8568313/build/cmake/android.toolchain.cmake
84+
-DANDROID_PLATFORM=21 -DANDROID_ABI=arm64-v8a
7885
artifact-name: godot-cpp-android-arm64-release.cmake
7986
artifact-path: cmake-build/bin/libgodot-cpp.android.template_release.arm64.a
8087
flags: arch=arm64
@@ -89,12 +96,12 @@ jobs:
8996
flags: arch=arm64
9097
run-tests: false
9198

92-
93-
9499
- name: 🌐 Web (wasm32)
95100
os: ubuntu-22.04
96101
platform: web
97-
config-flags: -G Ninja -DCMAKE_BUILD_TYPE=Release --toolchain ${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
102+
config-flags:
103+
-G Ninja -DCMAKE_BUILD_TYPE=Release
104+
--toolchain ${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
98105
artifact-name: godot-cpp-web-wasm32-release.cmake
99106
artifact-path: cmake-build/bin/libgodot-cpp.web.template_release.wasm32.a
100107
run-tests: false
@@ -113,18 +120,19 @@ jobs:
113120
with:
114121
platform: ${{ matrix.platform }}
115122
windows-compiler: ${{ matrix.compiler }}
123+
buildtool: cmake
116124

117125
- name: Configure
118-
run: |
126+
run: >
119127
cmake --log-level=VERBOSE -S . -B cmake-build ${{ env.config-flags }} ${{ matrix.config-flags }}
120128
121129
- name: Build test.template_debug
122-
run: |
123-
cmake --build cmake-build --target godot-cpp.test.template_debug ${{ matrix.build-flags }}
130+
run: >
131+
cmake --build cmake-build --verbose --target godot-cpp.test.template_debug ${{ matrix.build-flags }}
124132
125133
- name: Build test.template_release
126-
run: |
127-
cmake --build cmake-build --target godot-cpp.test.template_release ${{ matrix.build-flags }}
134+
run: >
135+
cmake --build cmake-build --verbose --target godot-cpp.test.template_release ${{ matrix.build-flags }}
128136
129137
- name: Run sccache stat for check
130138
shell: bash

.github/workflows/ci-scons.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
with:
114114
platform: ${{ matrix.platform }}
115115
windows-compiler: ${{ contains(matrix.flags, 'use_mingw=yes') && 'mingw' || 'msvc' }}
116+
buildtool: scons
116117

117118
- name: Generate godot-cpp sources only
118119
run: |
@@ -131,7 +132,7 @@ jobs:
131132
- name: Build test and godot-cpp (release)
132133
run: |
133134
cd test
134-
scons platform=${{ matrix.platform }} verbose=yes target=template_release ${{ matrix.flags }} build_profile="build_profile.json"
135+
scons platform=${{ matrix.platform }} verbose=yes target=template_release ${{ matrix.flags }}
135136
136137
- name: Save Godot build cache
137138
uses: ./.github/actions/godot-cache-save

cmake/godotcpp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function( godotcpp_generate )
258258
### Platform is derived from the toolchain target
259259
# See GeneratorExpressions PLATFORM_ID and CMAKE_SYSTEM_NAME
260260
string( CONCAT SYSTEM_NAME
261-
"$<$<PLATFORM_ID:Android>:android.${ANDROID_ABI}>"
261+
"$<$<PLATFORM_ID:Android>:android>"
262262
"$<$<PLATFORM_ID:iOS>:ios>"
263263
"$<$<PLATFORM_ID:Linux>:linux>"
264264
"$<$<PLATFORM_ID:Darwin>:macos>"

0 commit comments

Comments
 (0)