ci(github): add build for full-system-policy.

This commit is contained in:
Alexandre Pujol 2024-01-23 14:08:52 +00:00
parent 46cb726834
commit d3751d3a63
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -5,6 +5,11 @@ on: [push, pull_request, workflow_dispatch]
jobs: jobs:
build: build:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
strategy:
matrix:
mode:
- default
- full-system-policy
steps: steps:
- name: Check out repository code - name: Check out repository code
@ -20,6 +25,9 @@ jobs:
- name: Build the apparmor.d package - name: Build the apparmor.d package
run: | run: |
if [[ ${{ matrix.mode }} == full-system-policy ]]; then
echo -e "\noverride_dh_auto_build:\n\tmake full" >> debian/rules
fi
VERSION="0.$(git rev-list --count HEAD)-1" VERSION="0.$(git rev-list --count HEAD)-1"
dch --newversion="$VERSION" --urgency=medium --distribution=stable --controlmaint "Release $VERSION" dch --newversion="$VERSION" --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
dpkg-buildpackage -b -d --no-sign dpkg-buildpackage -b -d --no-sign