fips-provider.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Copyright 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: Provider compat
  8. on: [push]
  9. permissions:
  10. contents: read
  11. jobs:
  12. fips-provider-30:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: create build dirs
  16. run: |
  17. mkdir ./build
  18. mkdir ./build-3.0
  19. mkdir ./source
  20. mkdir ./source-3.0
  21. - uses: actions/checkout@v2
  22. with:
  23. path: source
  24. - name: config current
  25. run: ../source/config enable-shared enable-fips
  26. working-directory: ./build
  27. - name: config dump
  28. run: ./configdata.pm --dump
  29. working-directory: ./build
  30. - name: make
  31. run: make -s -j4
  32. working-directory: ./build
  33. - uses: actions/checkout@v2
  34. with:
  35. repository: openssl/openssl
  36. ref: openssl-3.0
  37. path: source-3.0
  38. - name: config 3.0
  39. run: ../source-3.0/config enable-shared enable-fips
  40. working-directory: ./build-3.0
  41. - name: config 3.0 dump
  42. run: ./configdata.pm --dump
  43. working-directory: ./build-3.0
  44. - name: make fips provider
  45. run: make -s -j4 build_modules
  46. working-directory: ./build-3.0
  47. - name: copy the provider
  48. run: |
  49. cp -a build-3.0/providers/fips.so build/providers/fips.so
  50. - name: make test
  51. run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
  52. working-directory: ./build
  53. fips-provider-master:
  54. runs-on: ubuntu-latest
  55. steps:
  56. - name: create build dirs
  57. run: |
  58. mkdir ./build
  59. mkdir ./build-3.0
  60. mkdir ./source
  61. mkdir ./source-3.0
  62. - uses: actions/checkout@v2
  63. with:
  64. repository: openssl/openssl
  65. ref: openssl-3.0
  66. path: source-3.0
  67. - name: config 3.0
  68. run: ../source-3.0/config enable-shared enable-fips
  69. working-directory: ./build-3.0
  70. - name: config 3.0 dump
  71. run: ./configdata.pm --dump
  72. working-directory: ./build-3.0
  73. - name: make 3.0
  74. run: make -s -j4
  75. working-directory: ./build-3.0
  76. - uses: actions/checkout@v2
  77. with:
  78. path: source
  79. - name: config current
  80. run: ../source/config enable-shared enable-fips
  81. working-directory: ./build
  82. - name: config dump
  83. run: ./configdata.pm --dump
  84. working-directory: ./build
  85. - name: make fips provider
  86. run: make -s -j4 build_modules
  87. working-directory: ./build
  88. - name: copy the provider
  89. run: |
  90. cp -a build/providers/fips.so build-3.0/providers/fips.so
  91. - name: make test 3.0
  92. run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
  93. working-directory: ./build-3.0