ci.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. name: CI
  2. on:
  3. push:
  4. branches:
  5. - feature/**
  6. tags:
  7. - '**'
  8. jobs:
  9. b2-posix:
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. include:
  14. - os: ubuntu-20.04
  15. - os: ubuntu-22.04
  16. - os: macos-11
  17. - os: macos-12
  18. runs-on: ${{matrix.os}}
  19. steps:
  20. - uses: actions/checkout@v3
  21. with:
  22. submodules: true
  23. - name: Setup Boost
  24. run: |
  25. ./bootstrap.sh
  26. ./b2 -d0 headers
  27. - name: Build Boost
  28. run: |
  29. ./b2 -j3 stage
  30. - name: Install Boost
  31. run: |
  32. ./b2 -j3 --prefix=$HOME/.local install
  33. - name: Test Boost
  34. run: |
  35. cd status
  36. ../b2 -j3 quick
  37. b2-windows:
  38. strategy:
  39. fail-fast: false
  40. matrix:
  41. include:
  42. - os: windows-2019
  43. - os: windows-2022
  44. runs-on: ${{matrix.os}}
  45. steps:
  46. - uses: actions/checkout@v3
  47. with:
  48. submodules: true
  49. - name: Setup Boost
  50. shell: cmd
  51. run: |
  52. cmd /c bootstrap
  53. b2 -d0 headers
  54. - name: Build Boost
  55. run: |
  56. ./b2 -j3 stage
  57. - name: Install Boost
  58. run: |
  59. ./b2 -j3 install
  60. - name: Test Boost
  61. run: |
  62. cd status
  63. ../b2 -j3 quick
  64. cmake-install-posix:
  65. strategy:
  66. fail-fast: false
  67. matrix:
  68. include:
  69. - os: ubuntu-20.04
  70. - os: ubuntu-22.04
  71. - os: macos-11
  72. - os: macos-12
  73. runs-on: ${{matrix.os}}
  74. steps:
  75. - uses: actions/checkout@v3
  76. with:
  77. submodules: true
  78. - name: Configure Boost
  79. run: |
  80. mkdir __build__ && cd __build__
  81. cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=~/.local ..
  82. - name: Build Boost
  83. run: |
  84. cd __build__
  85. cmake --build . -j 3
  86. - name: Install Boost
  87. run: |
  88. cd __build__
  89. cmake --build . -j 3 --target install
  90. cmake-install-windows:
  91. strategy:
  92. fail-fast: false
  93. matrix:
  94. include:
  95. - os: windows-2019
  96. - os: windows-2022
  97. runs-on: ${{matrix.os}}
  98. steps:
  99. - uses: actions/checkout@v3
  100. with:
  101. submodules: true
  102. - name: Configure Boost
  103. run: |
  104. mkdir __build__ && cd __build__
  105. cmake -DBUILD_SHARED_LIBS=ON ..
  106. - name: Build Boost
  107. run: |
  108. cd __build__
  109. cmake --build . -j 3
  110. - name: Install Boost
  111. run: |
  112. cd __build__
  113. cmake --build . -j 3 --target install
  114. cmake-test-posix:
  115. strategy:
  116. fail-fast: false
  117. matrix:
  118. include:
  119. - os: ubuntu-20.04
  120. - os: ubuntu-22.04
  121. - os: macos-11
  122. - os: macos-12
  123. runs-on: ${{matrix.os}}
  124. steps:
  125. - uses: actions/checkout@v3
  126. with:
  127. submodules: true
  128. - name: Configure Boost
  129. run: |
  130. mkdir __build__ && cd __build__
  131. cmake -DBUILD_TESTING=ON ..
  132. - name: Build tests
  133. run: |
  134. cd __build__
  135. cmake --build . -j 3 --target tests
  136. - name: Run tests
  137. run: |
  138. cd __build__
  139. ctest --output-on-failure --no-tests=error -j 3 -R quick
  140. cmake-test-windows:
  141. strategy:
  142. fail-fast: false
  143. matrix:
  144. include:
  145. - os: windows-2019
  146. - os: windows-2022
  147. runs-on: ${{matrix.os}}
  148. steps:
  149. - uses: actions/checkout@v3
  150. with:
  151. submodules: true
  152. - name: Configure Boost
  153. run: |
  154. mkdir __build__ && cd __build__
  155. cmake -DBUILD_TESTING=ON -DBOOST_EXCLUDE_LIBRARIES="convert;outcome" ..
  156. - name: Build tests
  157. run: |
  158. cd __build__
  159. cmake --build . -j 3 --target tests
  160. - name: Run tests
  161. run: |
  162. cd __build__
  163. ctest --output-on-failure --no-tests=error -j 3 -R quick -C Debug
粤ICP备19079148号