File tree Expand file tree Collapse file tree 2 files changed +48
-16
lines changed Expand file tree Collapse file tree 2 files changed +48
-16
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ env :
6
+ BUILD_TYPE : Release
7
+
8
+
9
+ jobs :
10
+ build :
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ platform :
15
+ - { name: Ubuntu GCC, os: ubuntu-latest, compiler: g++, }
16
+ - { name: Ubuntu Clang, os: ubuntu-latest, compiler: clang++ }
17
+ - { name: MacOS, os: macos-latest, compiler: clang++ }
18
+
19
+ name : ${{matrix.platform.name}}
20
+ runs-on : ${{matrix.platform.os}}
21
+
22
+ steps :
23
+ - name : Checkout code
24
+ uses : actions/checkout@v2
25
+ with :
26
+ submodules : ' recursive'
27
+
28
+ - name : Setup Linux compiler
29
+ if : runner.os == 'Linux'
30
+ run : export CXX=${{matrix.platform.compiler}}
31
+
32
+ - name : Create Build Environment
33
+ run : cmake -E make_directory ${{github.workspace}}/build
34
+
35
+ - name : Configure CMake
36
+ shell : bash
37
+ working-directory : ${{github.workspace}}/build
38
+ run : cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
39
+
40
+ - name : Build
41
+ shell : bash
42
+ working-directory : ${{github.workspace}}/build
43
+ run : cmake --build . --config ${BUILD_TYPE} --parallel 2
44
+
45
+ - name : Install
46
+ shell : bash
47
+ working-directory : ${{github.workspace}}/build
48
+ run : cmake --install . --config ${BUILD_TYPE}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments