summaryrefslogtreecommitdiff
path: root/.github/workflows/linux.yml
blob: 22ee9972a35ca4ecbf804c81142b61678916163d (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
name: Linux

on:
  push:
    branches: [ "trunk" ]
  pull_request:
    branches: [ "trunk" ]

env:
  MARGS: "-j2"

jobs:

  build:
    strategy:
      matrix:
        include: 
          - name: Default
          - name: Static
            config: --enable-static
          - name: Maintainer-mode
            config: --enable-maintainer-mode
          - name: Pool-debug
            config: --enable-pool-debug
          - name: Pool-debug, maintainer-mode
            config: --enable-pool-debug --enable-maintainer-mode
          - name: Maintainer-mode, no IPv6
            config: --enable-maintainer-mode --disable-ipv6
          - name: Maintainer-mode, -Werror
            notest-cflags: -Werror
            config: --enable-maintainer-mode
          - name: UBsan
            notest-cflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -Werror -O2

    runs-on: ubuntu-latest
    env:
      NOTEST_CFLAGS: ${{ matrix.notest-cflags }}
    name: ${{ matrix.name }}
    steps:
    - name: Install prerequisites
      run: sudo apt-get install libtool libtool-bin
    - uses: actions/checkout@v3
    - name: buildconf
      run: ./buildconf
    - name: configure
      run: ./configure ${{ matrix.config }}
    - name: make
      run: make $MARGS
    - name: make check
      run: make check