| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- name: build
- on: [push, pull_request]
- jobs:
- linux:
- timeout-minutes: 10
- strategy:
- matrix:
- compiler:
- - pkg: g++-7
- exe: g++-7
- - pkg: g++-8
- exe: g++-8
- - pkg: g++-9
- exe: g++-9
- - pkg: g++
- exe: g++
- - pkg: clang-8
- exe: clang++-8
- - pkg: clang-9
- exe: clang++-9
- - pkg: clang-10
- exe: clang++-10
- - pkg: clang
- exe: clang++
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Install compiler
- run: |
- sudo apt-get update
- sudo apt-get install ${{ matrix.compiler.pkg }} -y
- - name: Compile tests
- working-directory: build
- env:
- CXX: ${{ matrix.compiler.exe }}
- 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 30 -C Debug -j4
- linux-extra:
- timeout-minutes: 10
- strategy:
- matrix:
- compiler: [g++, clang++]
- id_type: ["std::uint32_t", "std::uint64_t"]
- cxx_std: [cxx_std_17, cxx_std_20]
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Compile tests
- working-directory: build
- env:
- CXX: ${{ matrix.compiler }}
- run: |
- cmake -DENTT_BUILD_TESTING=ON -DENTT_CXX_STD=${{ matrix.cxx_std }} -DENTT_ID_TYPE=${{ matrix.id_type }} ..
- make -j4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 30 -C Debug -j4
- windows:
- timeout-minutes: 10
- strategy:
- matrix:
- toolset: [clang-cl, default, v141]
- include:
- - toolset: clang-cl
- toolset_option: -T"ClangCl"
- - toolset: v141
- toolset_option: -T"v141"
- runs-on: windows-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 ${{ matrix.toolset_option }} ..
- cmake --build . -j 4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 30 -C Debug -j4
- windows-extra:
- timeout-minutes: 10
- strategy:
- matrix:
- id_type: ["std::uint32_t", "std::uint64_t"]
- cxx_std: [cxx_std_17, cxx_std_20]
- runs-on: windows-latest
- steps:
- - uses: actions/checkout@v2
- - name: Compile tests
- working-directory: build
- run: |
- cmake -DENTT_BUILD_TESTING=ON -DENTT_CXX_STD=${{ matrix.cxx_std }} -DENTT_ID_TYPE=${{ matrix.id_type }} ..
- cmake --build . -j 4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 30 -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 30 -C Debug -j4
- macos-extra:
- timeout-minutes: 10
- strategy:
- matrix:
- id_type: ["std::uint32_t", "std::uint64_t"]
- cxx_std: [cxx_std_17, cxx_std_20]
- runs-on: macOS-latest
- steps:
- - uses: actions/checkout@v2
- - name: Compile tests
- working-directory: build
- run: |
- cmake -DENTT_BUILD_TESTING=ON -DENTT_CXX_STD=${{ matrix.cxx_std }} -DENTT_ID_TYPE=${{ matrix.id_type }} ..
- make -j4
- - name: Run tests
- working-directory: build
- env:
- CTEST_OUTPUT_ON_FAILURE: 1
- run: ctest --timeout 30 -C Debug -j4
|