Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: CI Matrix
2
3 on:
4 push:
5 branches: [master]
6 pull_request:
7 branches: [master]
8
9 jobs:
10 build-and-test:
11 runs-on: ubuntu-latest
12 container: ${{ matrix.container }}
13 strategy:
14 fail-fast: false
15 matrix:
16 container: ["ubuntu:latest", "fedora:latest"]
17 compiler: [gcc, clang]
18
19 steps:
20 - name: Checkout code
21 uses: actions/checkout@v4
22
23 - name: Install dependencies (Ubuntu)
24 if: matrix.container == 'ubuntu:latest'
25 run: |
26 apt-get update
27 apt-get install -y \
28 gawk diffutils autoconf automake libtool \
29 ${{ matrix.compiler }} \
30 linux-headers-generic \
31 build-essential \
32 libkrb5-dev \
33 libcap-ng-dev \
34 python3-dev swig \
35 libldap-dev
36
37 - name: Install dependencies (Fedora)
38 if: matrix.container == 'fedora:latest'
39 run: |
40 dnf install -y \
41 gawk diffutils autoconf automake libtool gdm \
42 ${{ matrix.compiler }} \
43 kernel-headers \
44 krb5-devel \
45 libcap-ng-devel \
46 python3-devel python-unversioned-command swig \
47 openldap-devel
48
49 - name: Set compiler
50 run: |
51 echo "CC=${{ matrix.compiler }}" >> $GITHUB_ENV
52
53 - name: Build
54 run: |
55 autoreconf -f --install
56 ./configure --with-python3=yes --enable-gssapi-krb5=yes \
57 --with-arm --with-aarch64 --with-libcap-ng=yes \
58 --without-golang --enable-zos-remote \
59 --enable-experimental --with-io_uring
60 make -j$(nproc)
61
62 - name: Run tests
63 run: make check