1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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, macos-latest ]
- allow_failure: false
- include:
- - os: macos-latest
- allow_failure: true
- steps:
- - uses: actions/checkout@v2
- with:
- submodule: 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
-
|