| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- name: build
- on: [push, pull_request]
- jobs:
- linux:
- timeout-minutes: 10
- strategy:
- matrix:
- compiler: [
- g++-7, g++-8, g++-9, g++,
- clang++-8, clang++-9, clang++-10, clang++
- ]
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Install g++-7
- if: ${{ matrix.compiler == 'g++-7' }}
- run: |
- sudo apt-get update
- sudo apt-get install g++-7 -y
- - name: Install g++-8
- if: ${{ matrix.compiler == 'g++-8' }}
- run: |
- sudo apt-get update
- sudo apt-get install g++-8 -y
- - name: Install clang-8
- if: ${{ matrix.compiler == 'clang++-8' }}
- run: |
- sudo apt-get update
- sudo apt-get install clang-8 -y
- - name: Install clang-9
- if: ${{ matrix.compiler == 'clang++-9' }}
- run: |
- sudo apt-get update
- sudo apt-get install clang-9 -y
- - name: Install clang-10
- if: ${{ matrix.compiler == 'clang++-10' }}
- run: |
- sudo apt-get update
- sudo apt-get install clang-10 -y
- - name: Compile tests
- working-directory: build
- env:
- CXX: ${{ matrix.compiler }}
- run: |
- cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
- make -j4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 10 -C Debug -j4
- windows:
- timeout-minutes: 10
- strategy:
- matrix:
- os: [windows-latest, windows-2016]
- toolset: [clang-cl, default, v141]
- include:
- - toolset: clang-cl
- toolset_option: -T"ClangCl"
- - toolset: v141
- toolset_option: -T"v141"
- exclude:
- - os: windows-2016
- toolset: clang-cl
- - os: windows-2016
- toolset: v141
- runs-on: ${{ matrix.os }}
- steps:
- - uses: actions/checkout@v2
- - name: Compile tests
- working-directory: build
- run: |
- cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ${{ matrix.toolset_option }} ..
- cmake --build . -j 4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 10 -C Debug -j4
- macos:
- timeout-minutes: 10
- runs-on: macOS-latest
- steps:
- - uses: actions/checkout@v2
- - name: Compile tests
- working-directory: build
- run: |
- cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
- make -j4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 10 -C Debug -j4
|