stunnel.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. steps:
  10. - name: Build wolfSSL
  11. uses: wolfSSL/actions-build-autotools-project@v1
  12. with:
  13. path: wolfssl
  14. configure: --enable-stunnel
  15. install: true
  16. - name: Upload built lib
  17. uses: actions/upload-artifact@v3
  18. with:
  19. name: wolf-install-stunnel
  20. path: build-dir
  21. retention-days: 1
  22. stunnel_check:
  23. strategy:
  24. fail-fast: false
  25. matrix:
  26. # List of releases to test
  27. ref: [ 5.67 ]
  28. name: ${{ matrix.ref }}
  29. runs-on: ubuntu-latest
  30. needs: build_wolfssl
  31. steps:
  32. - name: Download lib
  33. uses: actions/download-artifact@v3
  34. with:
  35. name: wolf-install-stunnel
  36. path: build-dir
  37. - name: Checkout OSP
  38. uses: actions/checkout@v3
  39. with:
  40. repository: wolfssl/osp
  41. path: osp
  42. - name: Build and test stunnel
  43. uses: wolfSSL/actions-build-autotools-project@v1
  44. with:
  45. repository: mtrojnar/stunnel
  46. ref: stunnel-${{ matrix.ref }}
  47. path: stunnel
  48. patch-file: $GITHUB_WORKSPACE/osp/stunnel/${{ matrix.ref }}/stunnel-${{ matrix.ref }}.patch
  49. configure: --enable-wolfssl SSLDIR=$GITHUB_WORKSPACE/build-dir
  50. check: true
  51. - name: Confirm stunnel built with wolfSSL
  52. working-directory: ./stunnel
  53. run: ldd src/stunnel | grep wolfssl