cmake.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. name: CMake
  2. on:
  3. push:
  4. branches: ["master"]
  5. pull_request:
  6. branches: ["master"]
  7. env:
  8. # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
  9. BUILD_TYPE: Release
  10. jobs:
  11. macosPython:
  12. runs-on: macOS-latest
  13. steps:
  14. - uses: actions/checkout@v3
  15. - name: Install tox
  16. run: pip3 install tox
  17. - name: Python initial test
  18. working-directory: ${{github.workspace}}
  19. run: tox run
  20. ubuntu_Python_wo_Boost:
  21. runs-on: ubuntu-latest
  22. steps:
  23. - uses: actions/checkout@v3
  24. - name: Install Python NumPy and Pybind11
  25. run: sudo pip3 install tox
  26. - name: Python initial test
  27. working-directory: ${{github.workspace}}
  28. run: tox run
  29. ubuntu_Python_Boost:
  30. runs-on: ubuntu-latest
  31. steps:
  32. - uses: actions/checkout@v3
  33. - name: Install Python NumPy and Pybind11
  34. run: sudo pip3 install tox
  35. - name: install Boost (to use multiprecision)
  36. run: sudo apt install libboost-all-dev
  37. - name: Python initial test
  38. working-directory: ${{github.workspace}}
  39. run: tox run
  40. isBuilding_wo_GTest_Boost:
  41. runs-on: ubuntu-latest
  42. steps:
  43. - uses: actions/checkout@v3
  44. - name: Install Python NumPy and Pybind11
  45. run: sudo apt install python3-pybind11
  46. - name: Configure CMake
  47. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
  48. - name: Build
  49. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
  50. - name: Test
  51. working-directory: ${{github.workspace}}/build
  52. run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
  53. ctest_wo_Boost:
  54. runs-on: ubuntu-latest
  55. steps:
  56. - uses: actions/checkout@v3
  57. - name: Install deps
  58. run: sudo apt install python3-pybind11 libgtest-dev
  59. - name: Configure CMake
  60. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
  61. - name: Build
  62. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
  63. - name: Test
  64. working-directory: ${{github.workspace}}/build
  65. run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
  66. ctest_full:
  67. runs-on: ubuntu-latest
  68. steps:
  69. - uses: actions/checkout@v3
  70. ##################################################################
  71. # Do just the same but now with Boost multiprecision
  72. ##################################################################
  73. - name: install Boost (to use multiprecision)
  74. run: sudo apt install python3-pybind11 libgtest-dev libboost-all-dev
  75. - name: Configure CMake
  76. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
  77. - name: Build
  78. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
  79. - name: Test
  80. working-directory: ${{github.workspace}}/build
  81. run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure