Rework and modernize CI action #232
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
name: [fedora, debian] | |
compiler: [gcc, clang] | |
include: | |
- name: fedora | |
container: fedora:latest | |
- name: debian | |
container: debian:sid | |
container: ${{ matrix.container }} | |
steps: | |
- name: Install dependencies | |
run: | | |
if [ -f /etc/redhat-release ]; then | |
dnf -y install ${{ matrix.compiler }} make \ | |
pkgconf-pkg-config openssl-devel \ | |
docbook-style-xsl libxml2 xml-common libxslt \ | |
krb5-workstation krb5-devel krb5-server \ | |
libini_config {nss,socket}_wrapper openldap-server | |
elif [ -f /etc/debian_version ]; then | |
apt-get -q update | |
apt-get -yq install ${{ matrix.compiler }} pkg-config \ | |
libssl-dev docbook-{xsl,xml} libxml2-utils xml-core xsltproc \ | |
lib{krb5,ini-config,keyutils,popt,selinux1,systemd,verto}-dev \ | |
lib{nss,socket}-wrapper python3{,-colorama} \ | |
krb5-{kdc,admin-server,kdc-ldap} ldap-utils slapd | |
fi | |
fi | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup | |
run: | | |
autoreconf -fiv | |
./configure | |
- name: Build and test | |
env: | |
CC: ${{ matrix.compiler }} | |
run: make -s distcheck CC=\"$CC\"" |