ipmitool.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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-22.04
  17. if: github.repository_owner == 'wolfssl'
  18. # This should be a safe limit for the tests to run.
  19. timeout-minutes: 4
  20. steps:
  21. - name: Build wolfSSL
  22. uses: wolfSSL/actions-build-autotools-project@v1
  23. with:
  24. path: wolfssl
  25. configure: --enable-all
  26. install: true
  27. # Don't run tests as this config is tested in many other places
  28. check: false
  29. - name: tar build-dir
  30. run: tar -zcf build-dir.tgz build-dir
  31. - name: Upload built lib
  32. uses: actions/upload-artifact@v4
  33. with:
  34. name: wolf-install-ipmitool
  35. path: build-dir.tgz
  36. retention-days: 5
  37. build_ipmitool:
  38. strategy:
  39. fail-fast: false
  40. matrix:
  41. git_ref: [ c3939dac2c060651361fc71516806f9ab8c38901 ]
  42. name: ${{ matrix.git_ref }}
  43. if: github.repository_owner == 'wolfssl'
  44. runs-on: ubuntu-22.04
  45. needs: build_wolfssl
  46. steps:
  47. - name: Install dependencies
  48. run: export DEBIAN_FRONTEND=noninteractive && sudo apt-get update && sudo apt-get install -y libreadline8
  49. - name: Download lib
  50. uses: actions/download-artifact@v4
  51. with:
  52. name: wolf-install-ipmitool
  53. - name: untar build-dir
  54. run: tar -xf build-dir.tgz
  55. - name: Checkout OSP
  56. uses: actions/checkout@v4
  57. with:
  58. repository: wolfssl/osp
  59. path: osp
  60. - name: Build ipmitool
  61. uses: wolfSSL/actions-build-autotools-project@v1
  62. with:
  63. repository: ipmitool/ipmitool
  64. ref: ${{ matrix.git_ref }}
  65. path: ipmitool
  66. patch-file: $GITHUB_WORKSPACE/osp/ipmitool/*-${{ matrix.git_ref }}.patch
  67. configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir
  68. # No checks included and not running since it depends on hardware
  69. check: false
  70. - name: Confirm built with wolfSSL
  71. working-directory: ipmitool
  72. run: |
  73. ldd src/ipmitool | grep wolfssl
  74. ldd src/ipmievd | grep wolfssl