ci: run firejail --version after build/install

To ensure that the resulting program actually runs and also to show
which compile-time features it supports.
This commit is contained in:
Kelvin M. Klann 2022-05-16 18:49:26 -03:00
parent 78aaed11d8
commit 6a89ab0236
3 changed files with 12 additions and 0 deletions

View file

@ -35,6 +35,10 @@ jobs:
run: CC=clang-11 ./configure --enable-fatal-warnings
- name: make
run: make
- name: make install
run: sudo make install
- name: print version
run: command -V firejail && firejail --version
scan-build:
runs-on: ubuntu-20.04
steps:

View file

@ -33,5 +33,7 @@ jobs:
run: make
- name: make install
run: sudo make install
- name: print version
run: command -V firejail && firejail --version
- name: run tests
run: SHELL=/bin/bash make test-github

View file

@ -11,6 +11,7 @@ build_ubuntu_package:
- apt-get update -qq
- DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential lintian pkg-config python3 gawk
- ./configure --prefix=/usr && make deb && dpkg -i firejail*.deb
- command -V firejail && firejail --version
- python3 contrib/sort.py etc/profile-*/*.profile etc/inc/*.inc
build_debian_package:
@ -19,6 +20,7 @@ build_debian_package:
- apt-get update -qq
- apt-get install -y -qq build-essential lintian pkg-config gawk
- ./configure --prefix=/usr && make deb && dpkg -i firejail*.deb
- command -V firejail && firejail --version
build_redhat_package:
image: almalinux:latest
@ -26,6 +28,7 @@ build_redhat_package:
- dnf update -y
- dnf install -y rpm-build gcc make
- ./configure --prefix=/usr && make rpms && rpm -i firejail*.rpm
- command -V firejail && firejail --version
build_fedora_package:
image: fedora:latest
@ -33,6 +36,7 @@ build_fedora_package:
- dnf update -y
- dnf install -y rpm-build gcc make
- ./configure --prefix=/usr && make rpms && rpm -i firejail*.rpm
- command -V firejail && firejail --version
- python3 contrib/sort.py etc/profile-*/*.profile etc/inc/*.inc
build_src_package:
@ -42,6 +46,7 @@ build_src_package:
- apk upgrade
- apk add build-base linux-headers python3 gawk
- ./configure --prefix=/usr && make && make install-strip
- command -V firejail && firejail --version
# - python3 contrib/sort.py etc/*.{profile,inc}
build_apparmor:
@ -50,6 +55,7 @@ build_apparmor:
- apt-get update -qq
- DEBIAN_FRONTEND=noninteractive apt-get install -y -qq build-essential lintian libapparmor-dev pkg-config gawk
- ./configure --prefix=/usr && make deb-apparmor && dpkg -i firejail*.deb
- command -V firejail && firejail --version
debian_ci:
image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest