| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- name: build
- on: [push, pull_request]
- jobs:
- linux:
- timeout-minutes: 5
- strategy:
- matrix:
- os: [ubuntu-18.04]
- compiler: [g++, clang++]
- runs-on: ${{ matrix.os }}
- steps:
- - uses: actions/checkout@v1
- - name: Compile tests
- working-directory: build
- env:
- CXX: ${{ matrix.compiler }}
- run: |
- cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON ..
- make -j4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 5 -C Debug -j4
- windows:
- timeout-minutes: 5
- strategy:
- matrix:
- os: [windows-2019, windows-2016]
- include:
- - os: windows-2019
- generator: Visual Studio 16 2019
- - os: windows-2016
- generator: Visual Studio 15 2017
- runs-on: ${{ matrix.os }}
- steps:
- - uses: actions/checkout@v1
- - name: Compile tests
- working-directory: build
- run: |
- cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON -DCMAKE_CXX_FLAGS=/W1 -G"${{ matrix.generator }}" ..
- cmake --build . -j 4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 5 -C Debug -j4
- macos:
- timeout-minutes: 5
- runs-on: macOS-10.14
- steps:
- - uses: actions/checkout@v1
- - name: Compile tests
- working-directory: build
- run: |
- cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON ..
- make -j4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 5 -C Debug -j4
|