|
| 1 | +name: SSSD Tests |
| 2 | + |
| 3 | +# START OF COMMON SECTION |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: [ 'master', 'main', 'release/**' ] |
| 7 | + pull_request: |
| 8 | + branches: [ '*' ] |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 12 | + cancel-in-progress: true |
| 13 | +# END OF COMMON SECTION |
| 14 | + |
| 15 | +jobs: |
| 16 | + test_sssd: |
| 17 | + runs-on: ubuntu-22.04 |
| 18 | + timeout-minutes: 20 |
| 19 | + container: |
| 20 | + image: quay.io/sssd/ci-client-devel:ubuntu-latest |
| 21 | + env: |
| 22 | + LD_LIBRARY_PATH: /usr/local/lib:/github/home/wolfssl-install/lib:/github/home/openssl-install/lib64 |
| 23 | + strategy: |
| 24 | + fail-fast: false |
| 25 | + matrix: |
| 26 | + sssd_ref: [ 2.9.1 ] |
| 27 | + wolfssl_ref: [ 'master', 'v5.7.4-stable' ] |
| 28 | + steps: |
| 29 | + - name: Checkout wolfProvider |
| 30 | + uses: actions/checkout@v4 |
| 31 | + |
| 32 | + - name: Build wolfProvider |
| 33 | + run: | |
| 34 | + WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh |
| 35 | +
|
| 36 | + - name: Install dependencies |
| 37 | + run: | |
| 38 | + # Don't prompt for anything |
| 39 | + export DEBIAN_FRONTEND=noninteractive |
| 40 | + apt-get update |
| 41 | + apt-get install -y build-essential autoconf libldb-dev \ |
| 42 | + libldb2 python3-ldb bc |
| 43 | +
|
| 44 | + - name: Setup env |
| 45 | + run: | |
| 46 | + ln -s samba-4.0/ldb.h /usr/include/ldb.h |
| 47 | + ln -s samba-4.0/ldb_errors.h /usr/include/ldb_errors.h |
| 48 | + ln -s samba-4.0/ldb_handlers.h /usr/include/ldb_handlers.h |
| 49 | + ln -s samba-4.0/ldb_module.h /usr/include/ldb_module.h |
| 50 | + ln -s samba-4.0/ldb_version.h /usr/include/ldb_version.h |
| 51 | +
|
| 52 | + - name: Build sssd with wolfProvider |
| 53 | + uses: wolfSSL/actions-build-autotools-project@v1 |
| 54 | + with: |
| 55 | + repository: SSSD/sssd |
| 56 | + ref: ${{ matrix.sssd_ref }} |
| 57 | + path: sssd |
| 58 | + configure: >- |
| 59 | + --without-samba --disable-cifs-idmap-plugin |
| 60 | + --without-nfsv4-idmapd-plugin --with-oidc-child=no |
| 61 | + check: true |
0 commit comments