Skip to content

Commit 9419640

Browse files
authored
Create cmake.yml
1 parent e63887e commit 9419640

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.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
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11+
BUILD_TYPE: Release
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Configure CMake
20+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
21+
22+
- name: Build
23+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
24+
25+
- name: Test
26+
working-directory: ${{github.workspace}}/build
27+
run: ctest -C ${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)