@@ -2,9 +2,9 @@ name: CMake Build
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [master]
66 pull_request :
7- branches : [ master ]
7+ branches : [master]
88
99jobs :
1010 build :
@@ -15,24 +15,24 @@ jobs:
1515 build_type : [Release, Debug]
1616 shared_library : [True, False]
1717 exclude :
18- # Building a shared library is currently unsupported on Windows.
19- - os : windows-latest
20- shared_library : True
18+ # Building a shared library is currently unsupported on Windows.
19+ - os : windows-latest
20+ shared_library : True
2121
2222 steps :
23- - uses : actions/checkout@v2
23+ - uses : actions/checkout@v2
2424
25- - name : Configure CMake
26- # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required when using a single-configuration generator such as make.
27- # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
28- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DENTITYX_BUILD_SHARED=${{matrix.shared_library}}
25+ - name : Configure CMake
26+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required when using a single-configuration generator such as make.
27+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
28+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DENTITYX_BUILD_SHARED=${{matrix.shared_library}}
2929
30- - name : Build
31- # Build the library with the given configuration
32- run : cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
30+ - name : Build
31+ # Build the library with the given configuration
32+ run : cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
3333
34- - name : Test
35- working-directory : ${{github.workspace}}/build
36- # Execute tests defined by the CMake configuration.
37- # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
38- run : ctest -C ${{matrix.build_type}}
34+ - name : Test
35+ working-directory : ${{github.workspace}}/build
36+ # Execute tests defined by the CMake configuration.
37+ # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
38+ run : ctest -C ${{matrix.build_type}} --output-on-failure
0 commit comments