curl.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: curl Test
  2. on:
  3. workflow_call:
  4. jobs:
  5. build_wolfssl:
  6. name: Build wolfSSL
  7. runs-on: ubuntu-latest
  8. # This should be a safe limit for the tests to run.
  9. timeout-minutes: 4
  10. steps:
  11. - name: Build wolfSSL
  12. uses: wolfSSL/actions-build-autotools-project@v1
  13. with:
  14. path: wolfssl
  15. configure: --enable-curl
  16. install: true
  17. - name: Upload built lib
  18. uses: actions/upload-artifact@v4
  19. with:
  20. name: wolf-install-curl
  21. path: build-dir
  22. retention-days: 5
  23. test_curl:
  24. name: ${{ matrix.curl_ref }}
  25. runs-on: ubuntu-latest
  26. # This should be a safe limit for the tests to run.
  27. timeout-minutes: 15
  28. needs: build_wolfssl
  29. strategy:
  30. fail-fast: false
  31. matrix:
  32. curl_ref: [ 'master', 'curl-8_4_0' ]
  33. steps:
  34. - name: Install test dependencies
  35. run: |
  36. sudo apt-get update
  37. sudo apt-get install nghttp2 libpsl5 libpsl-dev
  38. sudo pip install impacket
  39. - name: Download lib
  40. uses: actions/download-artifact@v4
  41. with:
  42. name: wolf-install-curl
  43. path: build-dir
  44. - name: Build curl
  45. uses: wolfSSL/actions-build-autotools-project@v1
  46. with:
  47. repository: curl/curl
  48. path: curl
  49. ref: ${{ matrix.curl_ref }}
  50. configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir
  51. check: false
  52. - name: Test curl
  53. working-directory: curl
  54. run: make -j test-ci