libssh2.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: libssh2 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-all
  17. check: false # config is already tested in many other PRB's
  18. install: true
  19. - name: Upload built lib
  20. uses: actions/upload-artifact@v4
  21. with:
  22. name: wolf-install-libssh2
  23. path: build-dir
  24. retention-days: 5
  25. libssh2_check:
  26. strategy:
  27. fail-fast: false
  28. matrix:
  29. # List of releases to test
  30. ref: [ 1.11.0 ]
  31. name: ${{ matrix.ref }}
  32. runs-on: ubuntu-latest
  33. # This should be a safe limit for the tests to run.
  34. timeout-minutes: 8
  35. needs: build_wolfssl
  36. steps:
  37. - name: Download lib
  38. uses: actions/download-artifact@v4
  39. with:
  40. name: wolf-install-libssh2
  41. path: build-dir
  42. - name: Build and test libssh2
  43. uses: wolfSSL/actions-build-autotools-project@v1
  44. with:
  45. repository: libssh2/libssh2
  46. ref: libssh2-${{ matrix.ref }}
  47. path: libssh2
  48. configure: --with-crypto=wolfssl --with-libwolfssl-prefix=$GITHUB_WORKSPACE/build-dir
  49. check: true
  50. - name: Confirm libssh2 built with wolfSSL
  51. working-directory: ./libssh2
  52. run: ldd src/.libs/libssh2.so | grep wolfssl