Skip to content

Commit 1e4d6f1

Browse files
author
pfeatherstone
committed
build examples and benchmarks
1 parent 2aa1d29 commit 1e4d6f1

File tree

3 files changed

+46
-6
lines changed

3 files changed

+46
-6
lines changed

.github/workflows/macos.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,26 @@ jobs:
1818
- name: Install dependencies
1919
run: brew update && brew install ninja cmake
2020

21-
- name: Run CMake configuration and build
21+
- name: Build tests
2222
run: |
2323
cmake tests -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
2424
-DCMAKE_C_COMPILER=clang \
2525
-DCMAKE_CXX_COMPILER=clang++
2626
cmake --build build --parallel
2727
2828
- name: Run Unit Tests
29-
run: ./build/tests
29+
run: ./build/tests
30+
31+
- name: Build examples
32+
run: |
33+
cmake examples -B build2 -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
34+
-DCMAKE_C_COMPILER=clang \
35+
-DCMAKE_CXX_COMPILER=clang++
36+
cmake --build build2 --parallel
37+
38+
- name: Build benchmarks
39+
run: |
40+
cmake bench -B build3 -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
41+
-DCMAKE_C_COMPILER=clang \
42+
-DCMAKE_CXX_COMPILER=clang++
43+
cmake --build build3 --parallel

.github/workflows/ubuntu.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
sudo apt update
4949
sudo apt install -y ninja-build cmake ${{ matrix.packages }}
5050
51-
- name: Run CMake configuration and build
51+
- name: Build tests
5252
run: |
5353
cmake tests -B build -G Ninja \
5454
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -57,4 +57,20 @@ jobs:
5757
cmake --build build --parallel
5858
5959
- name: Run Unit Tests
60-
run: ./build/tests
60+
run: ./build/tests
61+
62+
- name: Build examples
63+
run: |
64+
cmake examples -B build2 -G Ninja \
65+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
66+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
67+
-DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }}
68+
cmake --build build2 --parallel
69+
70+
- name: Build benchmarks
71+
run: |
72+
cmake bench -B build3 -G Ninja \
73+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
74+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
75+
-DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }}
76+
cmake --build build3 --parallel

.github/workflows/windows.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,20 @@ jobs:
1919
- name: Install dependencies
2020
run: choco install --no-progress --yes cmake
2121

22-
- name: Run CMake configuration and build
22+
- name: Build tests
2323
run: |
2424
cmake tests -B build
2525
cmake --build build --config RelWithDebInfo --parallel
2626
2727
- name: Run Unit Tests
28-
run: build\RelWithDebInfo\tests.exe
28+
run: build\RelWithDebInfo\tests.exe
29+
30+
- name: Build examples
31+
run: |
32+
cmake examples -B build2
33+
cmake --build build2 --config RelWithDebInfo --parallel
34+
35+
- name: Build benchmarks
36+
run: |
37+
cmake bench -B build3
38+
cmake --build build3 --config RelWithDebInfo --parallel

0 commit comments

Comments
 (0)