1
0

build.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. name: build
  2. on: [push, pull_request]
  3. jobs:
  4. linux:
  5. timeout-minutes: 5
  6. strategy:
  7. matrix:
  8. compiler: [g++, clang++]
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v1
  12. - name: Compile tests
  13. working-directory: build
  14. env:
  15. CXX: ${{ matrix.compiler }}
  16. run: |
  17. cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON ..
  18. make -j4
  19. - name: Run tests
  20. working-directory: build
  21. env:
  22. CTEST_OUTPUT_ON_FAILURE: 1
  23. run: ctest --timeout 5 -C Debug -j4
  24. windows:
  25. timeout-minutes: 5
  26. strategy:
  27. matrix:
  28. generator: [Visual Studio 16 2019]
  29. runs-on: windows-latest
  30. steps:
  31. - uses: actions/checkout@v1
  32. - name: Compile tests
  33. working-directory: build
  34. run: |
  35. cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON -DCMAKE_CXX_FLAGS=/W1 -G"${{ matrix.generator }}" ..
  36. cmake --build . -j 4
  37. - name: Run tests
  38. working-directory: build
  39. env:
  40. CTEST_OUTPUT_ON_FAILURE: 1
  41. run: ctest --timeout 5 -C Debug -j4
  42. macos:
  43. timeout-minutes: 5
  44. runs-on: macOS-latest
  45. steps:
  46. - uses: actions/checkout@v1
  47. - name: Compile tests
  48. working-directory: build
  49. run: |
  50. cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON ..
  51. make -j4
  52. - name: Run tests
  53. working-directory: build
  54. env:
  55. CTEST_OUTPUT_ON_FAILURE: 1
  56. run: ctest --timeout 5 -C Debug -j4