Skip to content

Commit 5c6fcc2

Browse files
committed
cmake workflow
1 parent 4059083 commit 5c6fcc2

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CMake Build and Test
2+
3+
on:
4+
push:
5+
branches: [main, development]
6+
pull_request:
7+
branches: [main, development]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest]
15+
build_type: [Release, Debug]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Configure CMake
21+
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
22+
23+
- name: Build
24+
run: cmake --build build --config ${{ matrix.build_type }}
25+
26+
- name: Run tests
27+
run: ./build/all_tests

0 commit comments

Comments
 (0)