Skip to content

Commit

Permalink
ci: run firejail --version after build/install
Browse files Browse the repository at this point in the history
To ensure that the resulting program actually runs and also to show
which compile-time features it supports.
  • Loading branch information
kmk3 committed May 17, 2022
1 parent 78aaed1 commit 6a89ab0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -19,20 +20,23 @@ 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
script:
- 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
script:
- 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:
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 6a89ab0

Please sign in to comment.