openssh.yml 2.1 KB

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