4
0

build.yml 896 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: NRPE Tests
  2. on:
  3. push:
  4. branches: [ "master" ]
  5. pull_request:
  6. branches: [ "master" ]
  7. jobs:
  8. build_and_test:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout
  12. uses: actions/checkout@v4
  13. with:
  14. path: nrpe
  15. - name: configure
  16. run: |
  17. mkdir build
  18. cd build
  19. ../nrpe/configure
  20. - name: build
  21. run: |
  22. cd build
  23. make all
  24. - name: configure [no ssl]
  25. run: |
  26. mkdir build_nossl
  27. cd build_nossl
  28. ../nrpe/configure --disable-ssl
  29. - name: build [no ssl]
  30. run: |
  31. cd build_nossl
  32. make all
  33. - name: install test prerequisites
  34. run: |
  35. sudo apt-get -y install libio-socket-ssl-perl libdigest-crc-perl
  36. - name: test
  37. run: |
  38. cd build
  39. make test
  40. - name: test [no ssl]
  41. run: |
  42. cd build_nossl
  43. make test