2
0

openssh.yml 2.2 KB

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