1
0

pam-ipmi.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.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. - name: Build pam-ipmi
  66. working-directory: pam-ipmi
  67. run: |
  68. PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build-dir/lib/pkgconfig meson setup build
  69. ninja -C build