Add Github Action & add support for the last Ubuntu LTS.

This commit is contained in:
Alexandre Pujol 2021-12-02 12:35:13 +00:00
parent b52cbe564c
commit 0fc9c8b5b0
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
14 changed files with 518 additions and 44 deletions

37
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Ubuntu
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install Build dependencies
run: |
sudo apt-get update -q
sudo apt-get install -y \
devscripts debhelper config-package-dev \
auditd apparmor-profiles
- name: Build the apparmor.d package
run: dpkg-buildpackage -b -d --no-sign
- name: Install apparmor.d
run: sudo dpkg --install ../apparmor.d_*_all.deb
- name: Reload AppArmor
run: |
sudo systemctl restart apparmor.service || true
sudo systemctl status apparmor.service
- name: Show AppArmor log
run: sudo aa-log
- name: Verify apparmor status
run: |
aa-status
sudo aa-status