10 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
\r
15 # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
\r
16 # You can convert this to a matrix build if you need cross-platform coverage.
\r
17 # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
\r
18 runs-on: ${{ matrix.os }}
\r
22 os: [ubuntu-latest, windows-latest]
\r
25 - uses: actions/checkout@v2
\r
27 - name: Configure CMake
\r
28 # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
\r
29 # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
\r
30 run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON
\r
33 # Build your program with the given configuration
\r
34 run: cmake --build ./build --config ${{env.BUILD_TYPE}}
\r
37 working-directory: ./build
\r
38 # Execute tests defined by the CMake configuration.
\r
39 # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
\r
42 ctest -C ${{env.BUILD_TYPE}} -V
\r