]> arthur.barton.de Git - ngircd-alex.git/blob - .github/workflows/ci.yml
ngIRCd Release 27
[ngircd-alex.git] / .github / workflows / ci.yml
1 name: ngIRCd CI
2
3 on:
4   push:
5     branches:
6       - master
7     paths-ignore:
8       - 'COPYING'
9       - 'ChangeLog'
10       - 'NEWS'
11       - 'contrib/**'
12       - 'doc/**'
13       - 'man/**'
14       - '**.md'
15       - '**.txt'
16   pull_request:
17     branches:
18       - master
19     paths-ignore:
20       - 'COPYING'
21       - 'ChangeLog'
22       - 'NEWS'
23       - 'contrib/**'
24       - 'doc/**'
25       - 'man/**'
26       - '**.md'
27       - '**.txt'
28
29 jobs:
30   build_and_distcheck:
31
32     name: Configure ngIRCd sources and run make targets "all" and "distcheck"
33     runs-on: ubuntu-latest
34     timeout-minutes: 10
35
36     steps:
37     - uses: actions/checkout@v4
38     - uses: awalsh128/cache-apt-pkgs-action@v1
39       with:
40         packages: >
41           autoconf
42           automake
43           build-essential
44           expect
45           libident-dev
46           libpam0g-dev
47           libssl-dev
48           libwrap0-dev
49           pkg-config
50           telnet
51           zlib1g-dev
52         version: 1.0
53     - name: Generate build system files
54       run: ./autogen.sh
55     - name: Configure the build system
56       run: ./configure --enable-ipv6 --with-iconv --with-ident --with-openssl --with-pam --with-tcp-wrappers --with-zlib
57     - name: Build everything
58       run: make all
59     - name: Create distribution archive and run tests
60       run: make distcheck