16
16
- uses : actions/checkout@v4
17
17
- name : dependencies
18
18
run : |
19
- sudo apt install gcc-10 g++-10 libgcc-10-dev libunwind8-dev
19
+ sudo apt install gcc-10 g++-10 libgcc-10-dev libunwind8-dev ninja-build
20
20
pip3 install colorama
21
21
- name : libdwarf
22
22
run : |
36
36
- uses : actions/checkout@v4
37
37
- name : dependencies
38
38
run : |
39
- sudo apt install gcc-10 g++-10 libgcc-10-dev libunwind8-dev
39
+ sudo apt install gcc-10 g++-10 libgcc-10-dev libunwind8-dev ninja-build
40
40
pip3 install colorama
41
41
- name : libdwarf
42
42
run : |
@@ -125,7 +125,7 @@ jobs:
125
125
- uses : actions/checkout@v4
126
126
- name : dependencies
127
127
run : |
128
- sudo apt install gcc-10 g++-10 libgcc-10-dev libunwind8-dev
128
+ sudo apt install gcc-10 g++-10 libgcc-10-dev libunwind8-dev ninja-build
129
129
pip3 install colorama
130
130
- name : libdwarf
131
131
run : |
@@ -261,20 +261,21 @@ jobs:
261
261
steps :
262
262
- uses : actions/checkout@v4
263
263
- name : dependencies
264
- run : sudo apt install gcc-11 g++-11 libgcc-11-dev
264
+ run : sudo apt install gcc-11 g++-11 libgcc-11-dev ninja-build
265
265
- name : build
266
266
run : |
267
267
mkdir -p build
268
268
cd build
269
- cmake .. -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=foo
270
- make -j
271
- make install
269
+ cmake .. -GNinja - DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=foo
270
+ ninja
271
+ ninja install
272
272
mkdir -p ../test/speedtest/build
273
273
cd ../test/speedtest/build
274
274
cmake .. \
275
+ -GNinja \
275
276
-DCMAKE_BUILD_TYPE=Debug \
276
277
${{matrix.config}}
277
- make -j
278
+ ninja
278
279
- name : speedtest
279
280
working-directory : test/speedtest/build
280
281
run : |
@@ -298,8 +299,8 @@ jobs:
298
299
cp -rv cpptrace/test/fetchcontent-integration .
299
300
mkdir fetchcontent-integration/build
300
301
cd fetchcontent-integration/build
301
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG=$tag -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
302
- make
302
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG=$tag -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
303
+ ninja
303
304
./main
304
305
test-linux-findpackage :
305
306
runs-on : ubuntu-22.04
@@ -315,14 +316,14 @@ jobs:
315
316
tag=$(git rev-parse --abbrev-ref HEAD)
316
317
mkdir build
317
318
cd build
318
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
319
- sudo make -j install
319
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
320
+ sudo ninja install
320
321
cd ../..
321
322
cp -rv cpptrace/test/findpackage-integration .
322
323
mkdir findpackage-integration/build
323
324
cd findpackage-integration/build
324
- cmake .. -DCMAKE_BUILD_TYPE=Debug
325
- make
325
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug
326
+ ninja
326
327
./main
327
328
test-linux-add_subdirectory :
328
329
runs-on : ubuntu-22.04
@@ -340,8 +341,8 @@ jobs:
340
341
cp -rv cpptrace add_subdirectory-integration
341
342
mkdir add_subdirectory-integration/build
342
343
cd add_subdirectory-integration/build
343
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
344
- make
344
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
345
+ ninja
345
346
./main
346
347
347
348
test-macos-fetchcontent :
@@ -361,8 +362,8 @@ jobs:
361
362
cp -rv cpptrace/test/fetchcontent-integration .
362
363
mkdir fetchcontent-integration/build
363
364
cd fetchcontent-integration/build
364
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG=$tag -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
365
- make
365
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG=$tag -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
366
+ ninja
366
367
./main
367
368
test-macos-findpackage :
368
369
runs-on : macos-14
@@ -379,14 +380,14 @@ jobs:
379
380
echo $tag
380
381
mkdir build
381
382
cd build
382
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
383
- sudo make -j install
383
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
384
+ sudo ninja install
384
385
cd ../..
385
386
cp -rv cpptrace/test/findpackage-integration .
386
387
mkdir findpackage-integration/build
387
388
cd findpackage-integration/build
388
- cmake .. -DCMAKE_BUILD_TYPE=Debug
389
- make
389
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug
390
+ ninja
390
391
./main
391
392
test-macos-add_subdirectory :
392
393
runs-on : macos-14
@@ -404,8 +405,8 @@ jobs:
404
405
cp -rv cpptrace add_subdirectory-integration
405
406
mkdir add_subdirectory-integration/build
406
407
cd add_subdirectory-integration/build
407
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
408
- make
408
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
409
+ ninja
409
410
./main
410
411
411
412
test-mingw-fetchcontent :
@@ -425,8 +426,8 @@ jobs:
425
426
cp -Recurse cpptrace/test/fetchcontent-integration .
426
427
mkdir fetchcontent-integration/build
427
428
cd fetchcontent-integration/build
428
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG="$tag" "-GUnix Makefiles " -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
429
- make
429
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG="$tag" -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
430
+ ninja
430
431
.\main.exe
431
432
test-mingw-findpackage :
432
433
runs-on : windows-2022
@@ -443,14 +444,14 @@ jobs:
443
444
echo $tag
444
445
mkdir build
445
446
cd build
446
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} "-GUnix Makefiles" -DCMAKE_INSTALL_PREFIX=C:/foo -DCPPTRACE_WERROR_BUILD=On
447
- make -j install
447
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX=C:/foo -DCPPTRACE_WERROR_BUILD=On
448
+ ninja install
448
449
cd ../..
449
450
mv cpptrace/test/findpackage-integration .
450
451
mkdir findpackage-integration/build
451
452
cd findpackage-integration/build
452
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=C:/foo "-GUnix Makefiles"
453
- make
453
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=C:/foo
454
+ ninja
454
455
./main
455
456
test-mingw-add_subdirectory :
456
457
runs-on : windows-2022
@@ -468,8 +469,8 @@ jobs:
468
469
cp -Recurse cpptrace add_subdirectory-integration
469
470
mkdir add_subdirectory-integration/build
470
471
cd add_subdirectory-integration/build
471
- cmake .. -DCMAKE_BUILD_TYPE=Debug "-GUnix Makefiles" -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
472
- make
472
+ cmake .. -GNinja - DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCPPTRACE_WERROR_BUILD=On
473
+ ninja
473
474
.\main.exe
474
475
test-windows-fetchcontent :
475
476
runs-on : windows-2022
@@ -559,7 +560,7 @@ jobs:
559
560
- uses : actions/checkout@v4
560
561
- name : dependencies
561
562
run : |
562
- sudo apt install gcc-10 g++-10 libgcc-10-dev ninja-build libc++-dev
563
+ sudo apt install gcc-10 g++-10 libgcc-10-dev ninja-build libc++-dev ninja-build
563
564
cd ..
564
565
cpptrace/ci/setup-prerequisites-unittest.sh
565
566
- name : build and test
@@ -598,7 +599,7 @@ jobs:
598
599
- uses : actions/checkout@v4
599
600
- name : dependencies
600
601
run : |
601
- sudo apt install gcc-10 g++-10 libgcc-10-dev ninja-build libc++-dev
602
+ sudo apt install gcc-10 g++-10 libgcc-10-dev ninja-build libc++-dev ninja-build
602
603
cd ..
603
604
cpptrace/ci/setup-prerequisites-unittest.sh
604
605
- name : build and test
0 commit comments