3131 git --version
3232
3333 - uses : actions/checkout@v4
34- with :
35- submodules : recursive
3634
3735 - name : Configure
3836 shell : bash
5957 cd build/result/${{ matrix.build-config }}
6058 ./cage-asset-database
6159
62- - name : Install
63- shell : bash
64- run : |
65- cd build
66- cmake --install . --config ${{ matrix.build-config }} --prefix "C:/cage"
67- cd ../sources/test-install
68- mkdir build
69- cd build
70- cmake -A${{ matrix.build-arch }} ${{ matrix.build-tool }} -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} -DCage_DIR="C:/cage/cmake" ..
71- cmake --build . --config ${{ matrix.build-config }}
72-
7360
7461 Ubuntu :
7562 name : ubuntu-${{ matrix.os-version }}${{ matrix.build-arch }}-${{ matrix.build-config }}-${{ matrix.compiler.cc }}-${{ matrix.steam-sockets }}
8471 build-arch : ["", "-arm"]
8572 build-config : [debug, release]
8673 compiler :
87- - {
88- cc : gcc-13,
89- cxx : g++-13,
90- install : gcc-13 g++-13
91- }
9274 - {
9375 cc : gcc-14,
9476 cxx : g++-14,
@@ -124,8 +106,6 @@ jobs:
124106 ${{ matrix.compiler.cxx }} --version
125107
126108 - uses : actions/checkout@v4
127- with :
128- submodules : recursive
129109
130110 - name : Configure
131111 run : |
@@ -148,23 +128,66 @@ jobs:
148128 cd build/result/${{ matrix.build-config }}
149129 ./cage-asset-database
150130
151- - name : Install
131+ - name : List dependencies
132+ run : |
133+ cd build/result/${{ matrix.build-config }}
134+ echo "cage-core:"
135+ ldd libcage-core.so
136+ echo "cage-engine:"
137+ ldd libcage-engine.so
138+
139+
140+ MacOS :
141+ name : macos-${{ matrix.os-version }}-${{ matrix.build-config }}
142+ runs-on : macos-${{ matrix.os-version }}
143+ strategy :
144+ fail-fast : false
145+ matrix :
146+ os-version : [15]
147+ build-config : [debug, release]
148+
149+ steps :
150+ - name : Install packages
151+ run : |
152+ brew install nasm
153+
154+ - name : Versions
155+ run : |
156+ cmake --version
157+ git --version
158+ clang --version
159+ clang++ --version
160+
161+ - uses : actions/checkout@v4
162+
163+ - name : Configure
152164 run : |
153- cd build
154- sudo cmake --install .
155- cd ../sources/test-install
156165 mkdir build
157166 cd build
158167 cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} ..
159- cmake --build . -- -j$(( `nproc` + 1 ))
168+
169+ - name : Build
170+ run : |
171+ cd build
172+ cmake --build . -- -j$(( `sysctl -n hw.ncpu` + 1 ))
173+
174+ - name : Tests
175+ run : |
176+ cd build/result/${{ matrix.build-config }}
177+ ./cage-test-core
178+
179+ - name : Assets
180+ run : |
181+ cd build/result/${{ matrix.build-config }}
182+ ./cage-asset-database
160183
161184 - name : List dependencies
162185 run : |
163186 cd build/result/${{ matrix.build-config }}
164187 echo "cage-core:"
165- ldd libcage-core.so
188+ otool -L libcage-core.dylib
166189 echo "cage-engine:"
167- ldd libcage-engine.so
190+ otool -L libcage-engine.dylib
168191
169192
170193 NoProfiler :
@@ -184,8 +207,6 @@ jobs:
184207 sudo apt-get install -y xorg-dev libwayland-dev libxkbcommon-dev libpulse-dev libasound2-dev nasm libssl-dev
185208
186209 - uses : actions/checkout@v4
187- with :
188- submodules : recursive
189210
190211 - name : Configure
191212 run : |
@@ -246,8 +267,6 @@ jobs:
246267 clang++ --version
247268
248269 - uses : actions/checkout@v4
249- with :
250- submodules : recursive
251270
252271 - name : Configure
253272 run : |
@@ -265,53 +284,3 @@ jobs:
265284 run : |
266285 cd build/result/${{ matrix.build-config }}
267286 ./cage-test-core
268-
269-
270- MacOS :
271- name : macos-${{ matrix.os-version }}-${{ matrix.build-config }}
272- runs-on : macos-${{ matrix.os-version }}
273- strategy :
274- fail-fast : false
275- matrix :
276- os-version : [14, 15]
277- build-config : [debug, release]
278-
279- steps :
280- - name : Install packages
281- run : |
282- brew install nasm
283-
284- - name : Versions
285- run : |
286- cmake --version
287- git --version
288- clang --version
289- clang++ --version
290-
291- - uses : actions/checkout@v4
292- with :
293- submodules : recursive
294-
295- - name : Configure
296- run : |
297- mkdir build
298- cd build
299- cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} ..
300-
301- - name : Build
302- run : |
303- cd build
304- cmake --build . -- -j$(( `sysctl -n hw.ncpu` + 1 ))
305-
306- - name : Tests
307- run : |
308- cd build/result/${{ matrix.build-config }}
309- ./cage-test-core
310-
311- - name : List dependencies
312- run : |
313- cd build/result/${{ matrix.build-config }}
314- echo "cage-core:"
315- otool -L libcage-core.dylib
316- echo "cage-engine:"
317- otool -L libcage-engine.dylib
0 commit comments