Skip to content

Commit b331eff

Browse files
committed
Add CI via GitHub Actions
1 parent 8d0b03a commit b331eff

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on: [push, pull_request]
2+
3+
name: CMake
4+
5+
jobs:
6+
cmake-build:
7+
name: CMake ${{ matrix.os }} ${{ matrix.build_type }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
13+
build_type: ["Debug", "Release"]
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Configure CMake
18+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
19+
20+
- name: Build
21+
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.build_type }}

0 commit comments

Comments
 (0)