@@ -2,34 +2,47 @@ name: CI
22on : [push, pull_request]
33
44jobs :
5- ubuntu :
6- runs-on : ubuntu-latest
7- strategy :
8- fail-fast : false
9- matrix :
10- name : [ubuntu-clang, ubuntu-gcc]
11- include :
12- - name : ubuntu-clang
13- compiler : clang
14- cflags : -Wall -Wextra -Werror -Wno-cast-align -Wno-unused-parameter -Wno-missing-braces
15- - name : ubuntu-gcc
16- compiler : gcc
17- cflags : -Wall -Wextra -Werror -Wno-unused-parameter -Wno-format-truncation -Wno-restrict
18- steps :
19- - name : Checkout repository
20- uses : actions/checkout@v2
21- - name : Install dependencies
22- run : |
23- sudo apt-get update
24- sudo apt-get install -y build-essential autopoint clang gcc docbook-{xsl,xml} libxml2-utils xml-core xsltproc lib{krb5,ini-config,keyutils,popt,selinux1,systemd,verto}-dev lib{nss,socket}-wrapper python3{,-colorama} valgrind krb5-{kdc,admin-server,kdc-ldap} ldap-utils slapd apparmor-utils
25- - name : Silence AppArmor
26- run : sudo aa-complain $(which slapd)
27- - name : Setup
28- run : |
29- autoreconf -fiv
30- ./configure
31- - name : Build and test
32- env :
33- CFLAGS : ${{ matrix.cflags }}
34- CC : ${{ matrix.compiler }}
35- run : make -s distcheck DISTCHECK_CONFIGURE_FLAGS="CFLAGS=\"$CFLAGS\" CC=\"$CC\""
5+ ci :
6+ name : CI
7+ runs-on : ubuntu-latest
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ name : [fedora, debian]
12+ compiler : [gcc, clang]
13+ include :
14+ - name : fedora
15+ container : fedora:latest
16+ - name : debian
17+ container : debian:sid
18+ container : ${{ matrix.container }}
19+ steps :
20+ - name : Install dependencies
21+ run : |
22+ if [ -f /etc/redhat-release ]; then
23+ dnf -y install ${{ matrix.compiler }} make autoconf automake \
24+ libtool pkgconf-pkg-config gettext-devel openssl-devel \
25+ popt-devel docbook-style-xsl libxml2 xml-common libxslt \
26+ krb5-workstation krb5-devel krb5-server \
27+ libini_config nss_wrapper socket_wrapper openldap-servers \
28+ systemd-devel libselinux-devel libverto-devel
29+ elif [ -f /etc/debian_version ]; then
30+ apt-get -q update
31+ apt-get -yq install ${{ matrix.compiler }} autoconf automake \
32+ autotools-dev libtool pkg-config autopoint libssl-dev \
33+ docbook-xsl docbook-xml libxml2-utils xml-core xsltproc \
34+ libkrb5-dev libini-config-dev libkeyutils-dev libpopt-dev \
35+ libselinux1-dev libsystemd-dev libverto-dev \
36+ libnss-wrapper libsocket-wrapper python3 python3-colorama \
37+ krb5-kdc krb5-admin-server krb5-kdc-ldap ldap-utils slapd
38+ fi
39+ - name : Checkout repository
40+ uses : actions/checkout@v4
41+ - name : Setup
42+ run : |
43+ autoreconf -fiv
44+ ./configure
45+ - name : Build and test
46+ env :
47+ CC : ${{ matrix.compiler }}
48+ run : make -s distcheck CC=\"$CC\""
0 commit comments