fips-old.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Copyright 2022-2023 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 old versions compat
  8. on: [pull_request, push]
  9. permissions:
  10. contents: read
  11. jobs:
  12. fips-provider-validation:
  13. strategy:
  14. matrix:
  15. module: [
  16. {
  17. dir: openssl-3.0.0,
  18. tgz: openssl-3.0.0.tar.gz,
  19. url: "https://www.openssl.org/source/old/3.0/openssl-3.0.0.tar.gz"
  20. },
  21. ]
  22. runs-on: ubuntu-latest
  23. steps:
  24. - name: create directory
  25. run: mkdir ./current
  26. - uses: actions/checkout@v4
  27. with:
  28. path: current
  29. - name: download module source
  30. run: wget --no-verbose ${{ matrix.module.url }}
  31. - name: unpack module source
  32. run: tar xzf ${{ matrix.module.tgz }}
  33. - name: localegen
  34. run: sudo locale-gen tr_TR.UTF-8
  35. - name: config current
  36. run: ./config --banner=Configured enable-shared enable-fips
  37. working-directory: ./current
  38. - name: config dump current
  39. run: ./configdata.pm --dump
  40. working-directory: ./current
  41. - name: make current
  42. run: make -s -j4
  43. working-directory: ./current
  44. - name: show module from current
  45. run: |
  46. ./util/wrap.pl -fips apps/openssl list -provider-path providers \
  47. -provider fips -providers
  48. working-directory: ./current
  49. - name: test current
  50. run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
  51. working-directory: ./current
  52. - name: config module
  53. run: ./config --banner=Configured enable-shared enable-fips
  54. working-directory: ${{ matrix.module.dir }}
  55. - name: config dump module
  56. run: ./configdata.pm --dump
  57. working-directory: ${{ matrix.module.dir }}
  58. - name: make module
  59. run: make -s -j4
  60. working-directory: ${{ matrix.module.dir }}
  61. - name: setup module cross validation
  62. run: cp providers/fips{module.cnf,.so} ../current/providers/
  63. working-directory: ${{ matrix.module.dir }}
  64. - name: show module used for cross validation
  65. run: |
  66. ./util/wrap.pl -fips apps/openssl list -provider-path providers \
  67. -provider fips -providers
  68. working-directory: ./current
  69. - name: test module cross validation
  70. run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
  71. working-directory: ./current