net-snmp.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. name: net-snmp 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: --enable-net-snmp
  25. install: true
  26. - name: Upload built lib
  27. uses: actions/upload-artifact@v4
  28. with:
  29. name: wolf-install-net-snmp
  30. path: build-dir
  31. retention-days: 5
  32. net-snmp_check:
  33. strategy:
  34. fail-fast: false
  35. matrix:
  36. # List of releases to test
  37. include:
  38. - ref: 5.9.3
  39. test_opts: -e 'agentxperl'
  40. name: ${{ matrix.ref }}
  41. runs-on: ubuntu-latest
  42. # This should be a safe limit for the tests to run.
  43. timeout-minutes: 4
  44. needs: build_wolfssl
  45. steps:
  46. - name: Download lib
  47. uses: actions/download-artifact@v4
  48. with:
  49. name: wolf-install-net-snmp
  50. path: build-dir
  51. - name: Checkout OSP
  52. uses: actions/checkout@v4
  53. with:
  54. repository: wolfssl/osp
  55. path: osp
  56. - name: Build net-snmp
  57. uses: wolfSSL/actions-build-autotools-project@v1
  58. with:
  59. repository: net-snmp/net-snmp
  60. ref: v${{ matrix.ref }}
  61. path: net-snmp
  62. patch-file: $GITHUB_WORKSPACE/osp/net-snmp/${{ matrix.ref }}.patch
  63. configure: --disable-shared --with-wolfssl=$GITHUB_WORKSPACE/build-dir
  64. check: false
  65. - name: Run net-snmp tests
  66. working-directory: net-snmp
  67. run: |
  68. autoconf --version | grep -P '2\.\d\d' -o > dist/autoconf-version
  69. make -j test TESTOPTS="${{ matrix.test_opts }}"