summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2022-12-29 15:58:19 +0100
committerGitHub <noreply@github.com>2022-12-29 15:58:19 +0100
commitb49bc98b835c699a250518f0d57cbae67d1e78f3 (patch)
treeecd6bdb80a68375f40521864ac907d6ad107cf91 /.github
parent55744b1863107a2f54a5e7c974d797fef9720af9 (diff)
downloadngircd-b49bc98b835c699a250518f0d57cbae67d1e78f3.tar.gz
ngircd-b49bc98b835c699a250518f0d57cbae67d1e78f3.zip
Add "ngIRCd CI" GitHub Action
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..262a1c9f
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,48 @@
+name: ngIRCd CI
+
+on:
+  push:
+    branches:
+      - master
+    paths-ignore:
+      - 'AUTHORS'
+      - 'COPYING'
+      - 'ChangeLog'
+      - 'NEWS'
+      - 'contrib/**'
+      - 'doc/**'
+      - 'man/**'
+      - '**.md'
+      - '**.txt'
+  pull_request:
+    branches:
+      - master
+    paths-ignore:
+      - 'AUTHORS'
+      - 'COPYING'
+      - 'ChangeLog'
+      - 'NEWS'
+      - 'contrib/**'
+      - 'doc/**'
+      - 'man/**'
+      - '**.md'
+      - '**.txt'
+
+jobs:
+  build_and_distcheck:
+
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+
+    steps:
+    - uses: actions/checkout@v3
+    - name: Install packages
+      run: apt-get install autoconf automake build-essential expect libident-dev libpam-dev libssl-dev libwrap0-dev libz-dev pkg-config telnet
+    - 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