2
0

sssd.yml 2.7 KB

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