-
Notifications
You must be signed in to change notification settings - Fork 231
60 lines (45 loc) · 1.76 KB
/
ubuntu.yaml
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
name: Build and Test
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ubuntu-latest
env:
configure_flags: --enable-multilink --enable-systemd --enable-cbcp
steps:
- uses: actions/checkout@v4
- 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 libpam0g-dev
- name: configure
run: ./autogen.sh ${{ env.configure_flags }}
- name: build
run: make V=1 CFLAGS="-O2 -g -Wno-unused-result"
- name: run auto tests
run: VERBOSE=true make check
- name: distcheck
run: make distcheck DISTCHECK_CONFIGURE_FLAGS="${{ env.configure_flags }}"
build_and_test_asan:
runs-on: ubuntu-latest
env:
configure_flags: --enable-multilink --enable-systemd --enable-cbcp
CFLAGS: '-fsanitize=address -ggdb'
LDFLAGS: '-fsanitize=address'
steps:
- uses: actions/checkout@v4
- 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 libpam0g-dev
- name: configure
run: ./autogen.sh ${{ env.configure_flags }}
- name: build
run: make V=1 CFLAGS="-O2 -g -Wno-unused-result"
- name: run auto tests
run: VERBOSE=true make check
- name: distcheck
run: make distcheck DISTCHECK_CONFIGURE_FLAGS="${{ env.configure_flags }}"