stunnel.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. name: stunnel Tests
  2. # START OF COMMON SECTION
  3. on:
  4. push:
  5. branches: [ 'master', 'main', 'release/**' ]
  6. pull_request:
  7. branches: [ '*' ]
  8. concurrency:
  9. group: ${{ github.workflow }}-${{ github.ref }}
  10. cancel-in-progress: true
  11. # END OF COMMON SECTION
  12. jobs:
  13. build_wolfssl:
  14. name: Build wolfSSL
  15. if: github.repository_owner == 'wolfssl'
  16. # Just to keep it the same as the testing target
  17. runs-on: ubuntu-22.04
  18. # This should be a safe limit for the tests to run.
  19. timeout-minutes: 4
  20. steps:
  21. - name: Build wolfSSL
  22. uses: wolfSSL/actions-build-autotools-project@v1
  23. with:
  24. path: wolfssl
  25. configure: --enable-stunnel
  26. install: true
  27. - name: tar build-dir
  28. run: tar -zcf build-dir.tgz build-dir
  29. - name: Upload built lib
  30. uses: actions/upload-artifact@v4
  31. with:
  32. name: wolf-install-stunnel
  33. path: build-dir.tgz
  34. retention-days: 5
  35. stunnel_check:
  36. strategy:
  37. fail-fast: false
  38. matrix:
  39. # List of releases to test
  40. ref: [ 5.67 ]
  41. name: ${{ matrix.ref }}
  42. if: github.repository_owner == 'wolfssl'
  43. runs-on: ubuntu-22.04
  44. # This should be a safe limit for the tests to run.
  45. timeout-minutes: 4
  46. needs: build_wolfssl
  47. steps:
  48. - name: Download lib
  49. uses: actions/download-artifact@v4
  50. with:
  51. name: wolf-install-stunnel
  52. - name: untar build-dir
  53. run: tar -xf build-dir.tgz
  54. - name: Checkout OSP
  55. uses: actions/checkout@v4
  56. with:
  57. repository: wolfssl/osp
  58. path: osp
  59. - name: Build and test stunnel
  60. uses: wolfSSL/actions-build-autotools-project@v1
  61. with:
  62. repository: mtrojnar/stunnel
  63. ref: stunnel-${{ matrix.ref }}
  64. path: stunnel
  65. patch-file: $GITHUB_WORKSPACE/osp/stunnel/${{ matrix.ref }}/stunnel-${{ matrix.ref }}.patch
  66. configure: --enable-wolfssl SSLDIR=$GITHUB_WORKSPACE/build-dir
  67. check: true
  68. - name: Confirm stunnel built with wolfSSL
  69. working-directory: ./stunnel
  70. run: ldd src/stunnel | grep wolfssl