cmake.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. macos_Python:
  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. # windows_Python:
  21. # runs-on: windows-latest
  22. # steps:
  23. # - uses: actions/checkout@v3
  24. # - name: Install tox
  25. # run: pip3 install tox
  26. # - name: Python initial test
  27. # working-directory: ${{github.workspace}}
  28. # run: tox run
  29. ubuntu_Python_wo_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: Python initial test
  36. working-directory: ${{github.workspace}}
  37. run: tox run
  38. ubuntu_Python_Boost:
  39. runs-on: ubuntu-latest
  40. steps:
  41. - uses: actions/checkout@v3
  42. - name: Install Python NumPy and Pybind11
  43. run: sudo pip3 install tox
  44. - name: install Boost (to use multiprecision)
  45. run: sudo apt install libboost-all-dev
  46. - name: Python initial test
  47. working-directory: ${{github.workspace}}
  48. run: tox run
  49. isBuilding_wo_GTest_Boost:
  50. runs-on: ubuntu-latest
  51. steps:
  52. - uses: actions/checkout@v3
  53. - name: Install Python NumPy and Pybind11
  54. run: sudo apt install python3-pybind11
  55. - name: Configure CMake
  56. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
  57. - name: Build
  58. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
  59. - name: Test
  60. working-directory: ${{github.workspace}}/build
  61. run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
  62. - name: isBuilding without cmake
  63. working-directory: ${{github.workspace}}/examples
  64. run: ./go-cc-examples.sh
  65. ctest_wo_Boost:
  66. runs-on: ubuntu-latest
  67. steps:
  68. - uses: actions/checkout@v3
  69. - name: Install deps
  70. run: sudo apt install python3-pybind11 libgtest-dev
  71. - name: Configure CMake
  72. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
  73. - name: Build
  74. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
  75. - name: Test
  76. working-directory: ${{github.workspace}}/build
  77. run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
  78. ctest_full:
  79. runs-on: ubuntu-latest
  80. steps:
  81. - uses: actions/checkout@v3
  82. ##################################################################
  83. # Do just the same but now with Boost multiprecision
  84. ##################################################################
  85. - name: install Boost (to use multiprecision)
  86. run: sudo apt install python3-pybind11 libgtest-dev libboost-all-dev
  87. - name: Configure CMake
  88. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
  89. - name: Build
  90. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
  91. - name: Test
  92. working-directory: ${{github.workspace}}/build
  93. run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure