about summary refs log tree commit diff
path: root/.github/workflows/ci.yml
blob: 5aba70ef35cc872ee0ca7e105ff87eebb19a2d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: ngIRCd CI

on:
  push:
    branches:
      - master
    paths-ignore:
      - 'COPYING'
      - 'ChangeLog'
      - 'NEWS'
      - 'contrib/**'
      - 'doc/**'
      - 'man/**'
      - '**.md'
      - '**.txt'
  pull_request:
    branches:
      - master
    paths-ignore:
      - 'COPYING'
      - 'ChangeLog'
      - 'NEWS'
      - 'contrib/**'
      - 'doc/**'
      - 'man/**'
      - '**.md'
      - '**.txt'

jobs:
  build_and_distcheck:

    name: Configure ngIRCd sources and run make targets "all" and "distcheck"
    runs-on: ubuntu-latest
    timeout-minutes: 10

    steps:
    - uses: actions/checkout@v4
    - uses: awalsh128/cache-apt-pkgs-action@v1
      with:
        packages: >
          autoconf
          automake
          build-essential
          expect
          libident-dev
          libpam0g-dev
          libssl-dev
          libwrap0-dev
          pkg-config
          telnet
          zlib1g-dev
        version: 1.0
    - name: Generate build system files
      run: ./autogen.sh
    - name: Configure the build system
      run: ./configure --enable-ipv6 --with-iconv --with-ident --with-openssl --with-pam --with-tcp-wrappers --with-zlib
    - name: Build everything
      run: make all
    - name: Create distribution archive and run tests
      run: make distcheck