build.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. name: build
  2. on: [push, pull_request]
  3. jobs:
  4. linux:
  5. timeout-minutes: 10
  6. strategy:
  7. matrix:
  8. compiler: [
  9. g++-7, g++-8, g++-9, g++,
  10. clang++-8, clang++-9, clang++
  11. ]
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Compile tests
  16. working-directory: build
  17. env:
  18. CXX: ${{ matrix.compiler }}
  19. run: |
  20. cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
  21. make -j4
  22. - name: Run tests
  23. working-directory: build
  24. env:
  25. CTEST_OUTPUT_ON_FAILURE: 1
  26. run: ctest --timeout 5 -C Debug -j4
  27. windows:
  28. timeout-minutes: 10
  29. strategy:
  30. matrix:
  31. os: [windows-latest, windows-2016]
  32. toolset: [clang-cl, default, v141]
  33. include:
  34. - toolset: clang-cl
  35. toolset_option: -T"ClangCl"
  36. - toolset: v141
  37. toolset_option: -T"v141"
  38. exclude:
  39. - os: windows-2016
  40. toolset: clang-cl
  41. - os: windows-2016
  42. toolset: v141
  43. runs-on: ${{ matrix.os }}
  44. steps:
  45. - uses: actions/checkout@v2
  46. - name: Compile tests
  47. working-directory: build
  48. run: |
  49. cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ${{ matrix.toolset_option }} ..
  50. cmake --build . -j 4
  51. - name: Run tests
  52. working-directory: build
  53. env:
  54. CTEST_OUTPUT_ON_FAILURE: 1
  55. run: ctest --timeout 5 -C Debug -j4
  56. macos:
  57. timeout-minutes: 10
  58. runs-on: macOS-latest
  59. steps:
  60. - uses: actions/checkout@v2
  61. - name: Compile tests
  62. working-directory: build
  63. run: |
  64. cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ..
  65. make -j4
  66. - name: Run tests
  67. working-directory: build
  68. env:
  69. CTEST_OUTPUT_ON_FAILURE: 1
  70. run: ctest --timeout 5 -C Debug -j4