Skip to content

Commit 61da7bd

Browse files
committed
Add Ninja generator test to CI
1 parent 55d57f2 commit 61da7bd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,39 @@ jobs:
9292
cmake -G "Visual Studio 16 2019" -T v142 -A x64 -DCMAKE_C_FLAGS=/MP -DCMAKE_CXX_FLAGS=/MP -DCMAKE_BUILD_TYPE=Release .
9393
cmake --build . --config "Release" -- /maxcpucount /property:BuildInParallel=true /property:CL_MPCount=2 /verbosity:minimal
9494
95+
windows-msvc-cmake-ninja:
96+
name: Build (Windows, MSVC, CMake+Ninja)
97+
runs-on: windows-2019
98+
steps:
99+
- name: Checkout
100+
uses: actions/[email protected]
101+
with:
102+
submodules: recursive
103+
104+
- name: Set up Python (for binding generator)
105+
uses: actions/setup-python@v2
106+
with:
107+
python-version: '3.9.1'
108+
109+
- uses: seanmiddleditch/gha-setup-ninja@master
110+
111+
- name: Uninstall GCC
112+
run: |
113+
choco list --local-only
114+
choco uninstall mingw strawberryperl -y --remove-dependencies
115+
116+
- name: Add msbuild to PATH
117+
uses: microsoft/[email protected]
118+
with:
119+
vs-version: '[16.0,16.10)'
120+
121+
- name: Build godot-cpp
122+
run: |
123+
set CC=cl
124+
# MSVS generator supports multiple configurations but godot-cpp CMake requires CMAKE_BUILD_TYPE
125+
cmake -G Ninja -DCMAKE_C_FLAGS=/MP -DCMAKE_CXX_FLAGS=/MP -DCMAKE_BUILD_TYPE=Release .
126+
cmake --build . --config "Release"
127+
95128
windows-mingw:
96129
name: Build (Windows, MinGW)
97130
runs-on: windows-2019

0 commit comments

Comments
 (0)