stunnel.yml 1.7 KB

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