name: CMake on: push: branches: [ master ] pull_request: branches: [ master ] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Release jobs: build: runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.allow_failure }} strategy: fail-fast: false matrix: os: [ ubuntu-18.04, ubuntu-20.04, ubuntu-latest ] allow_failure: [false] # include: # - os: macos-latest # allow_failure: true steps: - uses: actions/checkout@v2 with: submodules: true - name: Configure CMake run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - name: Test round 1 working-directory: ${{github.workspace}}/build run: make test - name: Test round 2 working-directory: ${{github.workspace}}/build/tests run: make test