Skip to content

Commit 4766841

Browse files
committed
Test CMake project with CI
1 parent c629200 commit 4766841

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,41 @@ jobs:
4343
run: |
4444
./Godot_v3.2.3-stable_linux_server.64 --path test -s script.gd
4545
46+
linux-cmake:
47+
name: Build (Linux, GCC, CMake)
48+
runs-on: ubuntu-16.04
49+
steps:
50+
- name: Checkout
51+
uses: actions/[email protected]
52+
with:
53+
submodules: recursive
54+
55+
- name: Set up Python (for SCons)
56+
uses: actions/setup-python@v2
57+
with:
58+
python-version: '3.9.1'
59+
60+
- name: Install dependencies
61+
run: |
62+
sudo apt-get update -qq
63+
sudo apt-get install -qqq build-essential pkg-config cmake
64+
python -m pip install scons
65+
curl -LO https://downloads.tuxfamily.org/godotengine/3.2.3/Godot_v3.2.3-stable_linux_server.64.zip
66+
unzip Godot_v3.2.3-stable_linux_server.64.zip
67+
68+
- name: Build godot-cpp
69+
run: |
70+
cmake -DCMAKE_BUILD_TYPE=Release .
71+
make -j $(nproc)
72+
73+
- name: Build test GDNative library
74+
run: |
75+
scons target=release platform=linux bits=64 -j $(nproc) -C test
76+
77+
- name: Run test GDNative library
78+
run: |
79+
./Godot_v3.2.3-stable_linux_server.64 --path test -s script.gd
80+
4681
windows-msvc:
4782
name: Build (Windows, MSVC)
4883
runs-on: windows-2019

0 commit comments

Comments
 (0)