2
0

net-snmp.yml 2.1 KB

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