Fixups/v1 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-2410-sb: | |
name: Ubuntu 24.10 scan-buid | |
runs-on: ubuntu-latest | |
container: ubuntu:24.10 | |
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-19 \ | |
python3-clang-19 \ | |
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-19 CFLAGS="${DEFAULT_CFLAGS}" scan-build-19 ./configure --with-widec=no | |
- run: CC=clang-19 scan-build-19 --status-bugs make -j2 | |
- run: make clean | |
- run: CC=clang-19 CFLAGS="${DEFAULT_CFLAGS}" scan-build-19 ./configure --with-widec=yes | |
- run: CC=clang-19 scan-build-19 --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 \ | |
libtool \ | |
libnfnetlink-devel \ | |
libnetfilter_queue-devel \ | |
libtool \ | |
make \ | |
ncurses-devel \ | |
pkgconfig \ | |
sudo \ | |
which | |
- 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 |