| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- name: build
- on: [push, pull_request]
- jobs:
- linux:
- timeout-minutes: 10
- strategy:
- matrix:
- compiler: [g++, clang++]
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - 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: 10
- strategy:
- matrix:
- os: [windows-latest, windows-2016]
- toolset: [clang-cl, default]
- include:
- - toolset: clang-cl
- toolset_option: -T"ClangCl"
- exclude:
- - os: windows-2016
- toolset: clang-cl
- runs-on: ${{ matrix.os }}
- steps:
- - uses: actions/checkout@v2
- - name: Compile tests
- working-directory: build
- run: |
- cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON ${{ matrix.toolset_option }} ..
- 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: 10
- runs-on: macOS-latest
- steps:
- - uses: actions/checkout@v2
- - 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
|