|
@@ -0,0 +1,46 @@
|
|
1
|
+name: CMake
|
|
2
|
+
|
|
3
|
+on: [push]
|
|
4
|
+
|
|
5
|
+env:
|
|
6
|
+
|
|
7
|
+ BUILD_TYPE: Release
|
|
8
|
+
|
|
9
|
+jobs:
|
|
10
|
+ build:
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+ runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+ steps:
|
|
18
|
+ - uses: actions/checkout@v2
|
|
19
|
+
|
|
20
|
+ - name: Create Build Environment
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+ run: cmake -E make_directory ${{runner.workspace}}/build
|
|
24
|
+
|
|
25
|
+ - name: Configure CMake
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+ shell: bash
|
|
29
|
+ working-directory: ${{runner.workspace}}/build
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+ run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
34
|
+
|
|
35
|
+ - name: Build
|
|
36
|
+ working-directory: ${{runner.workspace}}/build
|
|
37
|
+ shell: bash
|
|
38
|
+
|
|
39
|
+ run: cmake --build . --config $BUILD_TYPE
|
|
40
|
+
|
|
41
|
+ - name: Test
|
|
42
|
+ working-directory: ${{runner.workspace}}/build
|
|
43
|
+ shell: bash
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+ run: ctest -C $BUILD_TYPE
|