2
0

sssd.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. name: sssd 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. if: github.repository_owner == 'wolfssl'
  15. name: Build wolfSSL
  16. # Just to keep it the same as the testing target
  17. runs-on: ubuntu-latest
  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 CFLAGS=-DWOLFSSL_NO_ASN_STRICT
  26. install: true
  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-sssd
  34. path: build-dir.tgz
  35. retention-days: 5
  36. sssd_check:
  37. if: github.repository_owner == 'wolfssl'
  38. strategy:
  39. fail-fast: false
  40. matrix:
  41. # List of releases to test
  42. ref: [ 2.9.1 ]
  43. name: ${{ matrix.ref }}
  44. runs-on: ubuntu-latest
  45. container:
  46. image: quay.io/sssd/ci-client-devel:ubuntu-latest
  47. env:
  48. LD_LIBRARY_PATH: /usr/local/lib
  49. # This should be a safe limit for the tests to run.
  50. timeout-minutes: 20
  51. needs: build_wolfssl
  52. steps:
  53. - name: Install dependencies
  54. run: |
  55. # Don't prompt for anything
  56. export DEBIAN_FRONTEND=noninteractive
  57. sudo apt-get update
  58. sudo apt-get install -y build-essential autoconf libldb-dev libldb2 python3-ldb bc
  59. - name: Setup env
  60. run: |
  61. ln -s samba-4.0/ldb.h /usr/include/ldb.h
  62. ln -s samba-4.0/ldb_errors.h /usr/include/ldb_errors.h
  63. ln -s samba-4.0/ldb_handlers.h /usr/include/ldb_handlers.h
  64. ln -s samba-4.0/ldb_module.h /usr/include/ldb_module.h
  65. ln -s samba-4.0/ldb_version.h /usr/include/ldb_version.h
  66. - name: Download lib
  67. uses: actions/download-artifact@v4
  68. with:
  69. name: wolf-install-sssd
  70. - name: untar build-dir
  71. run: tar -xf build-dir.tgz
  72. - name: Checkout OSP
  73. uses: actions/checkout@v4
  74. with:
  75. repository: wolfssl/osp
  76. path: osp
  77. - name: Build and test sssd
  78. uses: wolfSSL/actions-build-autotools-project@v1
  79. with:
  80. repository: SSSD/sssd
  81. ref: ${{ matrix.ref }}
  82. path: sssd
  83. patch-file: $GITHUB_WORKSPACE/osp/sssd/${{ matrix.ref }}.patch
  84. configure: >-
  85. --without-samba --without-nfsv4-idmapd-plugin --with-oidc-child=no
  86. --without-manpages WOLFSSL_INSTALL_DIR=$GITHUB_WORKSPACE/build-dir
  87. check: true