Skip to content

Remove leftover references to travis and LGTM #15

Remove leftover references to travis and LGTM

Remove leftover references to travis and LGTM #15

Workflow file for this run

name: CMake
permissions:
contents: read
on:
push:
# Always trigger CI on push
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
buildtype: [Debug, Release]
env:
BUILD_TYPE: ${{ matrix.buildtype }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{runner.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{runner.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{runner.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}