summaryrefslogtreecommitdiff
path: root/.github/workflows/ubuntu.yaml
blob: 971c21f9d56c3e3788b2e5999f78fea12741d567 (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
name: Build and Test
on: [push, pull_request]

jobs:
  build_and_test:
    runs-on: ubuntu-latest
    env:
      configure_flags: --enable-multilink --enable-systemd

    steps:
    - uses: actions/checkout@v2

    - name: install required packages
      run: |
        sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq update
        sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq install \
          build-essential autoconf automake pkg-config libtool m4 autoconf-archive \
          libssl-dev libatm1-dev libpcap-dev libsystemd-dev

    - name: configure
      run: ./autogen.sh ${{ env.configure_flags }}

    - name: build
      run: make V=1 CFLAGS="-O2 -g -Wno-unused-result"

    - name: distcheck
      run: make distcheck DISTCHECK_CONFIGURE_FLAGS="${{ env.configure_flags }}"