File tree Expand file tree Collapse file tree 3 files changed +86
-0
lines changed Expand file tree Collapse file tree 3 files changed +86
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : macos
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ${{matrix.config.os}}
8
+ strategy :
9
+ fail-fast : false
10
+ matrix :
11
+ config :
12
+ - { os: macos-10.15, xcode: "12.0.1" } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
13
+ - { os: macos-11.0, xcode: "11.7" } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11.0-Readme.md#xcode
14
+ build : [Debug, Release]
15
+
16
+ name : " xcode${{matrix.config.xcode}}:${{matrix.build}}"
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+
20
+ - name : Configure CMake
21
+ run : cmake -DCMAKE_BUILD_TYPE=${{matrix.build}}
22
+
23
+ - name : Build
24
+ run : cmake --build . --config ${{matrix.build}}
25
+
26
+ - name : Tests
27
+ run : ctest --output-on-failure -C ${{matrix.build}}
Original file line number Diff line number Diff line change
1
+ name : ubuntu
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ ubuntu :
7
+ runs-on : ubuntu-20.04
8
+ strategy :
9
+ fail-fast : false
10
+ matrix :
11
+ build : [Debug, Release]
12
+ compiler :
13
+ - { cc: "gcc-8", cxx: "g++-8" }
14
+ - { cc: "gcc-9", cxx: "g++-9" }
15
+ - { cc: "gcc-10", cxx: "g++-10" }
16
+ - { cc: "clang-8", cxx: "clang++-8" }
17
+ - { cc: "clang-9", cxx: "clang++-9" }
18
+ - { cc: "clang-10", cxx: "clang++-10" }
19
+
20
+ name : " ${{matrix.compiler.cxx}}:${{matrix.build}}"
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+
24
+ - name : Configure CMake
25
+ run : cmake -DCMAKE_BUILD_TYPE=${{matrix.build}} -DCMAKE_C_COMPILER=${{matrix.compiler.cc}} -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
26
+
27
+ - name : Build
28
+ run : cmake --build . --config ${{matrix.build}}
29
+
30
+ - name : Tests
31
+ run : ctest --output-on-failure -C ${{matrix.build}}
Original file line number Diff line number Diff line change
1
+ name : windows
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ${{matrix.config.os}}
8
+ strategy :
9
+ fail-fast : false
10
+ matrix :
11
+ config :
12
+ - { os: windows-2016, vs: "Visual Studio 2017" } # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2016-Readme.md#visual-studio-enterprise-2017
13
+ - { os: windows-2019, vs: "Visual Studio 2019" } # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#visual-studio-enterprise-2019
14
+ build : [Debug, Release]
15
+ platform : [Win32, x64]
16
+
17
+ name : " ${{matrix.config.vs}}:${{matrix.platform}}:${{matrix.build}}"
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+
21
+ - name : Configure CMake
22
+ run : cmake -A ${{matrix.platform}}
23
+
24
+ - name : Build
25
+ run : cmake --build . --config ${{matrix.build}}
26
+
27
+ - name : Tests
28
+ run : ctest --output-on-failure -C ${{matrix.build}}
You can’t perform that action at this time.
0 commit comments