stunnel.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. # Just to keep it the same as the testing target
  16. runs-on: ubuntu-latest
  17. # This should be a safe limit for the tests to run.
  18. timeout-minutes: 4
  19. steps:
  20. - name: Build wolfSSL
  21. uses: wolfSSL/actions-build-autotools-project@v1
  22. with:
  23. path: wolfssl
  24. configure: --enable-stunnel
  25. install: true
  26. - name: Upload built lib
  27. uses: actions/upload-artifact@v4
  28. with:
  29. name: wolf-install-stunnel
  30. path: build-dir
  31. retention-days: 5
  32. stunnel_check:
  33. strategy:
  34. fail-fast: false
  35. matrix:
  36. # List of releases to test
  37. ref: [ 5.67 ]
  38. name: ${{ matrix.ref }}
  39. runs-on: ubuntu-latest
  40. # This should be a safe limit for the tests to run.
  41. timeout-minutes: 4
  42. needs: build_wolfssl
  43. steps:
  44. - name: Download lib
  45. uses: actions/download-artifact@v4
  46. with:
  47. name: wolf-install-stunnel
  48. path: build-dir
  49. - name: Checkout OSP
  50. uses: actions/checkout@v4
  51. with:
  52. repository: wolfssl/osp
  53. path: osp
  54. - name: Build and test stunnel
  55. uses: wolfSSL/actions-build-autotools-project@v1
  56. with:
  57. repository: mtrojnar/stunnel
  58. ref: stunnel-${{ matrix.ref }}
  59. path: stunnel
  60. patch-file: $GITHUB_WORKSPACE/osp/stunnel/${{ matrix.ref }}/stunnel-${{ matrix.ref }}.patch
  61. configure: --enable-wolfssl SSLDIR=$GITHUB_WORKSPACE/build-dir
  62. check: true
  63. - name: Confirm stunnel built with wolfSSL
  64. working-directory: ./stunnel
  65. run: ldd src/stunnel | grep wolfssl