ipmitool.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: Upload built lib
  29. uses: actions/upload-artifact@v4
  30. with:
  31. name: wolf-install-ipmitool
  32. path: build-dir
  33. retention-days: 5
  34. build_ipmitool:
  35. strategy:
  36. fail-fast: false
  37. matrix:
  38. git_ref: [ c3939dac2c060651361fc71516806f9ab8c38901 ]
  39. name: ${{ matrix.git_ref }}
  40. runs-on: ubuntu-latest
  41. needs: build_wolfssl
  42. steps:
  43. - name: Download lib
  44. uses: actions/download-artifact@v4
  45. with:
  46. name: wolf-install-ipmitool
  47. path: build-dir
  48. - name: Checkout OSP
  49. uses: actions/checkout@v4
  50. with:
  51. repository: wolfssl/osp
  52. path: osp
  53. - name: Build ipmitool
  54. uses: wolfSSL/actions-build-autotools-project@v1
  55. with:
  56. repository: ipmitool/ipmitool
  57. ref: ${{ matrix.git_ref }}
  58. path: ipmitool
  59. patch-file: $GITHUB_WORKSPACE/osp/ipmitool/*-${{ matrix.git_ref }}.patch
  60. configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir
  61. # No checks included and not running since it depends on hardware
  62. check: false
  63. - name: Confirm built with wolfSSL
  64. working-directory: ipmitool
  65. run: |
  66. ldd src/ipmitool | grep wolfssl
  67. ldd src/ipmievd | grep wolfssl