]> arthur.barton.de Git - ngircd.git/blob - .github/workflows/ci.yml
"ngIRCd CI" GitHub Action: Update and use cache-apt-pkgs-action
[ngircd.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: autoconf automake build-essential expect libident-dev libpam-dev libssl-dev libwrap0-dev libz-dev pkg-config telnet
41         version: 1.0
42     - name: Generate build system files
43       run: ./autogen.sh
44     - name: Configure the build system
45       run: ./configure --enable-ipv6 --with-iconv --with-ident --with-openssl --with-pam --with-tcp-wrappers --with-zlib
46     - name: Build everything
47       run: make all
48     - name: Create distribution archive and run tests
49       run: make distcheck