stunnel.yml 2.0 KB

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