ci.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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-macos11-gpp:
  19. strategy:
  20. matrix:
  21. os: [macos-11]
  22. compiler: [g++]
  23. version: [10, 11, 12]
  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-macos11-clang:
  33. strategy:
  34. matrix:
  35. os: [macos-11]
  36. compiler: [clang++]
  37. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  38. runs-on: ${{ matrix.os }}
  39. steps:
  40. - uses: actions/checkout@v3
  41. - name: Run tests
  42. run: |
  43. cd tests
  44. bash ./run.sh ${{ matrix.compiler }}
  45. tests-macos12-gpp:
  46. strategy:
  47. matrix:
  48. os: [macos-12]
  49. compiler: [g++]
  50. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  51. runs-on: ${{ matrix.os }}
  52. steps:
  53. - uses: actions/checkout@v3
  54. - name: Run tests
  55. run: |
  56. cd tests
  57. bash ./run.sh ${{ matrix.compiler }}
  58. tests-macos12-clang:
  59. strategy:
  60. matrix:
  61. os: [macos-12]
  62. compiler: [clang++]
  63. version: [12, 13, 14]
  64. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  65. runs-on: ${{ matrix.os }}
  66. steps:
  67. - uses: actions/checkout@v3
  68. - name: Run tests
  69. run: |
  70. cd tests
  71. bash ./run.sh ${{ matrix.compiler }}
  72. tests-windows-2019:
  73. strategy:
  74. matrix:
  75. os: [windows-2019]
  76. compiler: [msvc, g++, clang++]
  77. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  78. runs-on: ${{ matrix.os }}
  79. steps:
  80. - uses: actions/checkout@v3
  81. - name: Run tests
  82. run: |
  83. cd tests
  84. bash ./run.sh ${{ matrix.compiler }}
  85. tests-windows-2022:
  86. strategy:
  87. matrix:
  88. os: [windows-2022]
  89. compiler: [msvc, g++]
  90. name: Use ${{ matrix.compiler }} on ${{ matrix.os }}
  91. runs-on: ${{ matrix.os }}
  92. steps:
  93. - uses: actions/checkout@v3
  94. - name: Run tests
  95. run: |
  96. cd tests
  97. bash ./run.sh ${{ matrix.compiler }}