]> jfr.im git - irc/freenode/solanum.git/blob - .github/workflows/ci.yml
Start CI configuration for Github Actions
[irc/freenode/solanum.git] / .github / workflows / ci.yml
1 name: CI
2
3 on:
4 push:
5 branches:
6 - main
7 paths-ignore:
8 - 'doc/oper-guide/**'
9 pull_request:
10 branches:
11 - main
12 paths-ignore:
13 - 'doc/oper-guide/**'
14
15 jobs:
16 linux:
17 name: Linux
18
19 runs-on: ubuntu-18.04
20
21 strategy:
22 fail-fast: false
23 matrix:
24 compiler:
25 - gcc-6 # Debian 9 (OFTC)
26 - gcc-7
27 - gcc-8
28 - clang-7
29 - clang-8
30
31 env:
32 CC: ${{ matrix.compiler }}
33
34 steps:
35 - name: Install dependencies
36 run: |
37 sudo apt-get update
38 sudo apt-get install -y --no-install-recommends \
39 ${CC} \
40 automake \
41 autoconf \
42 libtool \
43 libsqlite3-dev \
44 libhyperscan-dev \
45 # EOF
46 - uses: actions/checkout@v2
47 - name: autogen.sh
48 run: bash autogen.sh
49 - name: configure
50 run: CFLAGS="-Werror -Wno-unused-value -Wno-unused-parameter" ./configure --enable-assert=hard --enable-warnings
51 - name: make
52 run: make -j2
53 - name: make check
54 run: make check
55 - name: make install
56 run: make install