Skip to content

Commit 305a699

Browse files
committed
Add sssd action
1 parent 3260a9b commit 305a699

1 file changed

Lines changed: 97 additions & 0 deletions

File tree

.github/workflows/sssd.yml

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

0 commit comments

Comments
 (0)