Skip to content

Commit 88806e2

Browse files
committed
Test CMake with Ninja generator
1 parent 4236ee5 commit 88806e2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,36 @@ jobs:
7373
run: |
7474
./Godot_v3.2.3-stable_linux_server.64 --path test -s script.gd
7575
76+
linux-cmake-ninja:
77+
name: Build (Linux, GCC, CMake Ninja)
78+
runs-on: ubuntu-16.04
79+
steps:
80+
- name: Checkout
81+
uses: actions/[email protected]
82+
with:
83+
submodules: recursive
84+
85+
- name: Install dependencies
86+
run: |
87+
sudo apt-get update -qq
88+
sudo apt-get install -qqq build-essential pkg-config cmake ninja-build
89+
curl -LO https://downloads.tuxfamily.org/godotengine/3.2.3/Godot_v3.2.3-stable_linux_server.64.zip
90+
unzip Godot_v3.2.3-stable_linux_server.64.zip
91+
92+
- name: Build godot-cpp
93+
run: |
94+
cmake -DCMAKE_BUILD_TYPE=Release -GNinja .
95+
cmake --build . -j $(nproc)
96+
97+
- name: Build test GDNative library
98+
run: |
99+
cd test && cmake -DCMAKE_BUILD_TYPE=Release -GNinja .
100+
cmake --build . -j $(nproc)
101+
102+
- name: Run test GDNative library
103+
run: |
104+
./Godot_v3.2.3-stable_linux_server.64 --path test -s script.gd
105+
76106
windows-msvc:
77107
name: Build (Windows, MSVC)
78108
runs-on: windows-2019

0 commit comments

Comments
 (0)