pam-ipmi.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. name: pam-ipmi 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-pam-ipmi
  32. path: build-dir
  33. retention-days: 5
  34. build_pam-ipmi:
  35. strategy:
  36. fail-fast: false
  37. matrix:
  38. git_ref: [ e4b13e6725abb178f62ee897fe1c0e81b06a9431 ]
  39. name: ${{ matrix.git_ref }}
  40. runs-on: ubuntu-latest
  41. needs: build_wolfssl
  42. steps:
  43. - name: Install dependencies
  44. run: |
  45. # Don't prompt for anything
  46. export DEBIAN_FRONTEND=noninteractive
  47. sudo apt-get update
  48. sudo apt-get install libpam-dev ninja-build
  49. sudo pip3 install meson
  50. - name: Download lib
  51. uses: actions/download-artifact@v4
  52. with:
  53. name: wolf-install-pam-ipmi
  54. path: build-dir
  55. - name: Checkout OSP
  56. uses: actions/checkout@v4
  57. with:
  58. repository: wolfssl/osp
  59. path: osp
  60. - name: Checkout pam-ipmi
  61. uses: actions/checkout@v4
  62. with:
  63. repository: openbmc/pam-ipmi
  64. path: pam-ipmi
  65. ref: ${{ matrix.git_ref }}
  66. - name: Build pam-ipmi
  67. working-directory: pam-ipmi
  68. run: |
  69. patch -p1 < ../osp/pam-ipmi/*-${{ matrix.git_ref }}.patch
  70. PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build-dir/lib/pkgconfig meson setup build
  71. ninja -C build
  72. - name: Confirm built with wolfSSL
  73. working-directory: pam-ipmi
  74. run: |
  75. ldd ./build/src/pam_ipmisave/pam_ipmisave.so | grep wolfssl