ipmitool.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. name: ipmitool 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-all
  25. install: true
  26. # Don't run tests as this config is tested in many other places
  27. check: false
  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-ipmitool
  34. path: build-dir.tgz
  35. retention-days: 5
  36. build_ipmitool:
  37. strategy:
  38. fail-fast: false
  39. matrix:
  40. git_ref: [ c3939dac2c060651361fc71516806f9ab8c38901 ]
  41. name: ${{ matrix.git_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-ipmitool
  49. - name: untar build-dir
  50. run: tar -xf build-dir.tgz
  51. - name: Checkout OSP
  52. uses: actions/checkout@v4
  53. with:
  54. repository: wolfssl/osp
  55. path: osp
  56. - name: Build ipmitool
  57. uses: wolfSSL/actions-build-autotools-project@v1
  58. with:
  59. repository: ipmitool/ipmitool
  60. ref: ${{ matrix.git_ref }}
  61. path: ipmitool
  62. patch-file: $GITHUB_WORKSPACE/osp/ipmitool/*-${{ matrix.git_ref }}.patch
  63. configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir
  64. # No checks included and not running since it depends on hardware
  65. check: false
  66. - name: Confirm built with wolfSSL
  67. working-directory: ipmitool
  68. run: |
  69. ldd src/ipmitool | grep wolfssl
  70. ldd src/ipmievd | grep wolfssl