2
0

openssh.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. name: openssh 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: >-
  17. --enable-openssh --enable-dsa --with-max-rsa-bits=8192
  18. --enable-intelasm --enable-sp-asm
  19. install: true
  20. - name: Upload built lib
  21. uses: actions/upload-artifact@v4
  22. with:
  23. name: wolf-install-openssh
  24. path: build-dir
  25. retention-days: 5
  26. openssh_check:
  27. strategy:
  28. fail-fast: false
  29. matrix:
  30. include:
  31. - git_ref: 'V_9_6_P1'
  32. osp_ver: '9.6'
  33. name: ${{ matrix.ref }}
  34. runs-on: ubuntu-latest
  35. needs: build_wolfssl
  36. steps:
  37. - name: Download lib
  38. uses: actions/download-artifact@v4
  39. with:
  40. name: wolf-install-openssh
  41. path: build-dir
  42. - name: Checkout OSP
  43. uses: actions/checkout@v4
  44. with:
  45. repository: wolfssl/osp
  46. path: osp
  47. - name: Build and test openssh
  48. uses: wolfSSL/actions-build-autotools-project@v1
  49. with:
  50. repository: openssh/openssh-portable
  51. ref: ${{ matrix.git_ref }}
  52. path: openssh
  53. patch-file: $GITHUB_WORKSPACE/osp/openssh-patches/openssh-${{ matrix.osp_ver }}.patch
  54. configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir --with-rpath=-Wl,-rpath=
  55. check: false
  56. # make tests take >20 minutes. Consider limiting?
  57. - name: Run tests
  58. working-directory: ./openssh
  59. run: |
  60. # Run all the tests except (t-exec) as it takes too long
  61. make file-tests interop-tests extra-tests unit