ci.yml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. name: CI
  2. on:
  3. push:
  4. paths-ignore:
  5. - 'docs/**'
  6. - 'LICENSE'
  7. - 'read.me'
  8. - 'README.md'
  9. pull_request:
  10. paths-ignore:
  11. - 'docs/**'
  12. - 'LICENSE'
  13. - 'read.me'
  14. - 'README.md'
  15. env:
  16. TEST_REF_FORBID_GEN_REFS: true
  17. jobs:
  18. tests-ubuntu2004-gpp:
  19. strategy:
  20. matrix:
  21. os: [ubuntu-20.04]
  22. compiler: [g++]
  23. version: [9, 10]
  24. name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
  25. runs-on: ${{ matrix.os }}
  26. steps:
  27. - uses: actions/checkout@v3
  28. - name: Run tests
  29. run: |
  30. cd tests
  31. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
  32. tests-ubuntu2004-clang:
  33. strategy:
  34. matrix:
  35. os: [ubuntu-20.04]
  36. compiler: [clang++]
  37. version: [10, 11, 12]
  38. name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
  39. runs-on: ${{ matrix.os }}
  40. steps:
  41. - uses: actions/checkout@v3
  42. - name: Run tests
  43. run: |
  44. cd tests
  45. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
  46. tests-ubuntu2204-gpp:
  47. strategy:
  48. matrix:
  49. os: [ubuntu-22.04]
  50. compiler: [g++]
  51. version: [9, 10, 11, 12]
  52. name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
  53. runs-on: ${{ matrix.os }}
  54. steps:
  55. - uses: actions/checkout@v3
  56. - name: Run tests
  57. run: |
  58. cd tests
  59. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
  60. tests-ubuntu2204-clang:
  61. strategy:
  62. matrix:
  63. os: [ubuntu-22.04]
  64. compiler: [clang++]
  65. version: [13, 14]
  66. name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
  67. runs-on: ${{ matrix.os }}
  68. steps:
  69. - uses: actions/checkout@v3
  70. - name: Run tests
  71. run: |
  72. cd tests
  73. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
  74. tests-ubuntu2004-gpp-32:
  75. strategy:
  76. matrix:
  77. os: [ubuntu-20.04]
  78. compiler: [g++]
  79. version: [9, 10]
  80. name: Use ${{ matrix.compiler }}-${{ matrix.version }} -m32 on ${{ matrix.os }}
  81. runs-on: ${{ matrix.os }}
  82. steps:
  83. - uses: actions/checkout@v3
  84. - name: Run tests
  85. run: |
  86. sudo apt-get update
  87. sudo apt-get install gcc-${{ matrix.version }}-multilib g++-${{ matrix.version }}-multilib
  88. cd tests
  89. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }} 32
  90. tests-ubuntu2004-clang-32:
  91. strategy:
  92. matrix:
  93. os: [ubuntu-20.04]
  94. compiler: [clang++]
  95. version: [10, 11, 12]
  96. name: Use ${{ matrix.compiler }}-${{ matrix.version }} -m32 on ${{ matrix.os }}
  97. runs-on: ${{ matrix.os }}
  98. steps:
  99. - uses: actions/checkout@v3
  100. - name: Run tests
  101. run: |
  102. sudo apt-get update
  103. sudo apt-get install gcc-multilib g++-multilib
  104. cd tests
  105. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }} 32
  106. tests-ubuntu2204-gpp-32:
  107. strategy:
  108. matrix:
  109. os: [ubuntu-22.04]
  110. compiler: [g++]
  111. version: [9, 10, 11]
  112. name: Use ${{ matrix.compiler }}-${{ matrix.version }} -m32 on ${{ matrix.os }}
  113. runs-on: ${{ matrix.os }}
  114. steps:
  115. - uses: actions/checkout@v3
  116. - name: Run tests
  117. run: |
  118. sudo apt-get update
  119. sudo apt-get install gcc-${{ matrix.version }}-multilib g++-${{ matrix.version }}-multilib
  120. cd tests
  121. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }} 32
  122. tests-ubuntu2204-clang-32:
  123. strategy:
  124. matrix:
  125. os: [ubuntu-22.04]
  126. compiler: [clang++]
  127. version: [13, 14]
  128. name: Use ${{ matrix.compiler }}-${{ matrix.version }} -m32 on ${{ matrix.os }}
  129. runs-on: ${{ matrix.os }}
  130. steps:
  131. - uses: actions/checkout@v3
  132. - name: Run tests
  133. run: |
  134. sudo apt-get update
  135. sudo apt-get install gcc-multilib g++-multilib
  136. cd tests
  137. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }} 32
  138. tests-macos11-gpp:
  139. strategy:
  140. matrix:
  141. os: [macos-11]
  142. compiler: [g++]
  143. version: [10, 11, 12]
  144. name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
  145. runs-on: ${{ matrix.os }}
  146. steps:
  147. - uses: actions/checkout@v3
  148. - name: Run tests
  149. run: |
  150. cd tests
  151. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
  152. tests-macos11-clang:
  153. strategy:
  154. matrix:
  155. os: [macos-11]
  156. compiler: [clang++]
  157. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  158. runs-on: ${{ matrix.os }}
  159. steps:
  160. - uses: actions/checkout@v3
  161. - name: Run tests
  162. run: |
  163. cd tests
  164. bash ./run.sh ${{ matrix.compiler }}
  165. tests-macos12-gpp:
  166. strategy:
  167. matrix:
  168. os: [macos-12]
  169. compiler: [g++]
  170. version: [11, 12, 13]
  171. name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
  172. runs-on: ${{ matrix.os }}
  173. steps:
  174. - uses: actions/checkout@v3
  175. - name: Run tests
  176. run: |
  177. cd tests
  178. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
  179. tests-macos12-clang:
  180. strategy:
  181. matrix:
  182. os: [macos-12]
  183. compiler: [clang++]
  184. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  185. runs-on: ${{ matrix.os }}
  186. steps:
  187. - uses: actions/checkout@v3
  188. - name: Run tests
  189. run: |
  190. cd tests
  191. bash ./run.sh ${{ matrix.compiler }}
  192. tests-macos13-gpp:
  193. strategy:
  194. matrix:
  195. os: [macos-13]
  196. compiler: [g++]
  197. version: [11, 12, 13]
  198. name: Use ${{ matrix.compiler }}-${{ matrix.version }} on ${{ matrix.os }}
  199. runs-on: ${{ matrix.os }}
  200. steps:
  201. - uses: actions/checkout@v3
  202. - name: Run tests
  203. run: |
  204. cd tests
  205. bash ./run.sh ${{ matrix.compiler }} v${{ matrix.version }}
  206. tests-macos13-clang:
  207. strategy:
  208. matrix:
  209. os: [macos-13]
  210. compiler: [clang++]
  211. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  212. runs-on: ${{ matrix.os }}
  213. steps:
  214. - uses: actions/checkout@v3
  215. - name: Run tests
  216. run: |
  217. cd tests
  218. bash ./run.sh ${{ matrix.compiler }}
  219. tests-windows-2019:
  220. strategy:
  221. matrix:
  222. os: [windows-2019]
  223. compiler: [msvc, g++, clang++]
  224. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  225. runs-on: ${{ matrix.os }}
  226. steps:
  227. - uses: actions/checkout@v3
  228. - name: Run tests
  229. run: |
  230. cd tests
  231. bash ./run.sh ${{ matrix.compiler }}
  232. tests-windows-2022:
  233. strategy:
  234. matrix:
  235. os: [windows-2022]
  236. compiler: [msvc, g++, clang++]
  237. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  238. runs-on: ${{ matrix.os }}
  239. steps:
  240. - uses: actions/checkout@v3
  241. - name: Run tests
  242. run: |
  243. cd tests
  244. bash ./run.sh ${{ matrix.compiler }}