compiler-zoo.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Copyright 2021-2022 The OpenSSL Project Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License 2.0 (the "License"). You may not use
  4. # this file except in compliance with the License. You can obtain a copy
  5. # in the file LICENSE in the source distribution or at
  6. # https://www.openssl.org/source/license.html
  7. name: Compiler Zoo CI
  8. on: [push]
  9. permissions:
  10. contents: read
  11. jobs:
  12. compiler:
  13. strategy:
  14. fail-fast: false
  15. matrix:
  16. zoo: [
  17. {
  18. cc: gcc-7,
  19. distro: ubuntu-20.04
  20. }, {
  21. cc: gcc-8,
  22. distro: ubuntu-20.04
  23. }, {
  24. cc: gcc-9,
  25. distro: ubuntu-20.04
  26. }, {
  27. cc: gcc-10,
  28. distro: ubuntu-20.04
  29. }, {
  30. cc: gcc-11,
  31. distro: ubuntu-22.04
  32. }, {
  33. cc: gcc-12,
  34. distro: ubuntu-22.04
  35. }, {
  36. cc: clang-6.0,
  37. distro: ubuntu-20.04
  38. }, {
  39. cc: clang-7,
  40. distro: ubuntu-20.04
  41. }, {
  42. cc: clang-8,
  43. distro: ubuntu-20.04
  44. }, {
  45. cc: clang-9,
  46. distro: ubuntu-20.04
  47. }, {
  48. cc: clang-10,
  49. distro: ubuntu-20.04
  50. }, {
  51. cc: clang-11,
  52. distro: ubuntu-20.04
  53. }, {
  54. cc: clang-12,
  55. distro: ubuntu-20.04
  56. }, {
  57. cc: clang-13,
  58. distro: ubuntu-22.04
  59. }, {
  60. cc: clang-14,
  61. distro: ubuntu-22.04
  62. }
  63. ]
  64. # We set per-compiler now to allow testing with both older and newer sets
  65. # Often, the full range of oldest->newest compilers we want aren't available
  66. # in a single version of Ubuntu.
  67. runs-on: ${{ matrix.zoo.distro }}
  68. steps:
  69. - name: install packages
  70. run: |
  71. sudo apt-get update
  72. sudo apt-get -yq --force-yes install ${{ matrix.zoo.cc }}
  73. - uses: actions/checkout@v2
  74. - name: config
  75. run: |
  76. CC=${{ matrix.zoo.cc }} ./config --banner=Configured no-shared \
  77. -Wall -Werror enable-fips --strict-warnings
  78. - name: config dump
  79. run: ./configdata.pm --dump
  80. - name: make
  81. run: make -s -j4
  82. - name: make test
  83. run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}