-
Notifications
You must be signed in to change notification settings - Fork 27
186 lines (177 loc) · 5.42 KB
/
builds.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
name: builds
on:
- push
- pull_request
permissions: read-all
env:
DEFAULT_CFLAGS: "-Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-function"
# Apt sometimes likes to ask for user input, this will prevent that.
DEBIAN_FRONTEND: "noninteractive"
jobs:
ubuntu-2004:
name: Ubuntu 20.04
runs-on: ubuntu-latest
container: ubuntu:20.04
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
apt update
apt-get upgrade -y
apt-get -y install make \
autoconf \
build-essential \
autoconf \
automake \
dpkg-dev \
debhelper \
libtool \
make \
pkg-config \
libnetfilter-conntrack-dev \
libnetfilter-log-dev \
libmnl-dev \
libncurses5-dev \
libncursesw5-dev
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --prefix=/usr --sysconfdir=/etc
- run: make -j2
- run: make install
- run: make distcheck
- run: vuurmuur -V
- run: dpkg-buildpackage
ubuntu-2204:
name: Ubuntu 22.04
runs-on: ubuntu-latest
container: ubuntu:22.04
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
apt update
apt-get upgrade -y
apt-get -y install make \
autoconf \
build-essential \
autoconf \
automake \
dpkg-dev \
debhelper \
libtool \
make \
pkg-config \
libnetfilter-conntrack-dev \
libnetfilter-log-dev \
libmnl-dev \
libncurses5-dev \
libncursesw5-dev
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --prefix=/usr --sysconfdir=/etc
- run: make -j2
- run: make install
- run: make distcheck
- run: vuurmuur -V
- run: dpkg-buildpackage
ubuntu-2204-installer:
name: Ubuntu 22.04 Installer
runs-on: ubuntu-latest
container: ubuntu:22.04
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
apt update
apt-get upgrade -y
apt-get -y install make \
autoconf \
build-essential \
autoconf \
automake \
libtool \
gettext \
make \
pkg-config \
libnetfilter-conntrack-dev \
libnetfilter-log-dev \
libmnl-dev \
libncurses5-dev \
libncursesw5-dev
- run: installer/install.sh --defaults --install --build-update
- run: installer/install.sh --defaults --upgrade --build-update
ubuntu-2404-sb:
name: Ubuntu 24.04 scan-buid
runs-on: ubuntu-latest
container: ubuntu:24.04
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
apt update
apt-get upgrade -y
apt-get -y install make \
autoconf \
build-essential \
autoconf \
automake \
clang-tools-18 \
python3-clang-18 \
dpkg-dev \
debhelper \
libtool \
make \
pkg-config \
libnetfilter-conntrack-dev \
libnetfilter-log-dev \
libmnl-dev \
libncurses5-dev \
libncursesw5-dev
- run: ./autogen.sh
- run: CC=clang-18 CFLAGS="${DEFAULT_CFLAGS}" scan-build-18 ./configure --with-widec=no
- run: CC=clang-18 scan-build-18 --status-bugs make -j2
- run: make clean
- run: CC=clang-18 CFLAGS="${DEFAULT_CFLAGS}" scan-build-18 ./configure --with-widec=yes
- run: CC=clang-18 scan-build-18 --status-bugs make -j2
centos-9-stream:
name: CentOS 9 Stream
runs-on: ubuntu-latest
container: quay.io/centos/centos:stream9
steps:
- uses: actions/checkout@v3.1.0
- name: Install system dependencies
run: |
dnf -y install dnf-plugins-core epel-release
dnf config-manager --set-enabled crb
dnf -y install \
autoconf \
automake \
file-devel \
gcc \
gcc-c++ \
gettext-devel \
git \
libmnl-devel \
libtool \
libnfnetlink-devel \
libnetfilter_conntrack-devel \
libnetfilter_queue-devel \
libtool \
make \
ncurses-devel \
pkgconfig \
sudo \
which
- run: |
git clone https://git.netfilter.org/libnetfilter_log/
cd libnetfilter_log
bash autogen.sh
./configure --prefix=/usr
make
make install
cd ..
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --prefix=/usr --sysconfdir=/etc
- run: make -j2
- run: make install
- run: make distcheck
- run: ldconfig /usr/lib
- run: vuurmuur -V