Skip to content

Commit b657078

Browse files
committed
Try renaming.
1 parent 79c9c2c commit b657078

File tree

3 files changed

+227
-226
lines changed

3 files changed

+227
-226
lines changed

.github/workflows/build.yml

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
name: Continuous integration
2+
on: workflow_call
3+
4+
env:
5+
# Only used for the cache key. Increment version to force clean build.
6+
GODOT_BASE_BRANCH: master
7+
8+
concurrency:
9+
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
SCons:
14+
name: ${{ matrix.name }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- name: SCons 🐧 Linux (GCC)
21+
os: ubuntu-18.04
22+
platform: linux
23+
artifact-name: godot-cpp-linux-glibc2.27-x86_64-release
24+
artifact-path: bin/libgodot-cpp.linux.template_release.x86_64.a
25+
cache-name: linux-x86_64
26+
27+
- name: Scons 🐧 Linux (GCC, Double Precision)
28+
os: ubuntu-18.04
29+
platform: linux
30+
artifact-name: godot-cpp-linux-glibc2.27-x86_64-double-release
31+
artifact-path: bin/libgodot-cpp.linux.template_release.double.x86_64.a
32+
flags: float=64
33+
cache-name: linux-x86_64-f64
34+
35+
- name: Scons 🏁 Windows (x86_64, MSVC)
36+
os: windows-2019
37+
platform: windows
38+
artifact-name: godot-cpp-windows-msvc2019-x86_64-release
39+
artifact-path: bin/libgodot-cpp.windows.template_release.x86_64.lib
40+
cache-name: windows-x86_64-msvc
41+
42+
- name: Scons 🏁 Windows (x86_64, MinGW)
43+
os: windows-2019
44+
platform: windows
45+
artifact-name: godot-cpp-linux-mingw-x86_64-release
46+
artifact-path: bin/libgodot-cpp.windows.template_release.x86_64.a
47+
flags: use_mingw=yes
48+
cache-name: windows-x86_64-mingw
49+
50+
- name: Scons 🍎 macOS (universal)
51+
os: macos-11
52+
platform: macos
53+
artifact-name: godot-cpp-macos-universal-release
54+
artifact-path: bin/libgodot-cpp.macos.template_release.universal.a
55+
flags: arch=universal
56+
cache-name: macos-universal
57+
58+
- name: Scons 🤖 Android (arm64)
59+
os: ubuntu-18.04
60+
platform: android
61+
artifact-name: godot-cpp-android-arm64-release
62+
artifact-path: bin/libgodot-cpp.android.template_release.arm64.a
63+
flags: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64
64+
cache-name: android-arm64
65+
66+
- name: Scons 🍏 iOS (arm64)
67+
os: macos-11
68+
platform: ios
69+
artifact-name: godot-cpp-ios-arm64-release
70+
artifact-path: bin/libgodot-cpp.ios.template_release.arm64.a
71+
flags: arch=arm64
72+
cache-name: ios-arm64
73+
74+
env:
75+
SCONS_CACHE: ${{ github.workspace }}/.scons-cache/
76+
77+
steps:
78+
- name: Checkout
79+
uses: actions/checkout@v3
80+
with:
81+
submodules: recursive
82+
83+
- name: Setup Godot build cache
84+
uses: ./.github/actions/godot-cache
85+
with:
86+
cache-name: ${{ matrix.cache-name }}
87+
continue-on-error: true
88+
89+
- name: Set up Python (for SCons)
90+
uses: actions/setup-python@v4
91+
with:
92+
python-version: '3.x'
93+
94+
- name: Linux dependencies
95+
if: ${{ matrix.platform == 'linux' }}
96+
run: |
97+
sudo apt-get update -qq
98+
sudo apt-get install -qqq build-essential pkg-config
99+
100+
- name: Install scons
101+
run: |
102+
python -m pip install scons==4.0.0
103+
104+
- name: Setup MinGW for Windows/MinGW build
105+
if: ${{ matrix.platform == 'windows' && matrix.flags == 'use_mingw=yes' }}
106+
uses: egor-tensin/setup-mingw@v2
107+
108+
- name: Build godot-cpp (debug)
109+
run: |
110+
scons platform=${{ matrix.platform }} target=template_debug ${{ matrix.flags }}
111+
112+
- name: Build test without rebuilding godot-cpp (debug)
113+
run: |
114+
cd test
115+
scons platform=${{ matrix.platform }} target=template_debug ${{ matrix.flags }} build_library=no
116+
117+
- name: Build test and godot-cpp (release)
118+
run: |
119+
cd test
120+
scons platform=${{ matrix.platform }} target=template_release ${{ matrix.flags }}
121+
122+
- name: Upload artifact
123+
uses: actions/upload-artifact@v3
124+
with:
125+
name: ${{ matrix.artifact-name }}
126+
path: ${{ matrix.artifact-path }}
127+
if-no-files-found: error
128+
129+
linux-cmake:
130+
name: CMake 🐧 Linux (Make, GCC)
131+
runs-on: ubuntu-18.04
132+
steps:
133+
- name: Checkout
134+
uses: actions/checkout@v3
135+
with:
136+
submodules: recursive
137+
138+
- name: Install dependencies
139+
run: |
140+
sudo apt-get update -qq
141+
sudo apt-get install -qqq build-essential pkg-config cmake
142+
143+
- name: Build godot-cpp
144+
run: |
145+
cmake -DCMAKE_BUILD_TYPE=Release .
146+
make -j $(nproc) VERBOSE=1
147+
148+
- name: Build test GDNative library
149+
run: |
150+
cd test && cmake -DCMAKE_BUILD_TYPE=Release -DGODOT_HEADERS_PATH="../godot-headers" -DCPP_BINDINGS_PATH=".." .
151+
make -j $(nproc) VERBOSE=1
152+
153+
linux-cmake-ninja:
154+
name: CMake 🐧 Linux (Ninja, GCC)
155+
runs-on: ubuntu-18.04
156+
steps:
157+
- name: Checkout
158+
uses: actions/checkout@v3
159+
with:
160+
submodules: recursive
161+
162+
- name: Install dependencies
163+
run: |
164+
sudo apt-get update -qq
165+
sudo apt-get install -qqq build-essential pkg-config cmake ninja-build
166+
167+
- name: Build godot-cpp
168+
run: |
169+
cmake -DCMAKE_BUILD_TYPE=Release -GNinja .
170+
cmake --build . -j $(nproc) --verbose
171+
172+
- name: Build test GDNative library
173+
run: |
174+
cd test && cmake -DCMAKE_BUILD_TYPE=Release -DGODOT_HEADERS_PATH="../godot-headers" -DCPP_BINDINGS_PATH=".." -GNinja .
175+
cmake --build . -j $(nproc) --verbose
176+
177+
windows-msvc-cmake:
178+
name: CMake 🏁 Windows (VS, MSVC)
179+
runs-on: windows-2019
180+
steps:
181+
- name: Checkout
182+
uses: actions/checkout@v3
183+
with:
184+
submodules: recursive
185+
186+
- name: Build godot-cpp
187+
run: |
188+
cmake -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" .
189+
cmake --build . --verbose
190+
191+
- name: Build test GDNative library
192+
run: |
193+
cd test && cmake -DCMAKE_BUILD_TYPE=Release -DGODOT_HEADERS_PATH="../godot-headers" -DCPP_BINDINGS_PATH=".." -G"Visual Studio 16 2019" .
194+
cmake --build . --verbose

0 commit comments

Comments
 (0)