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