2021-12-02 13:35:13 +01:00
|
|
|
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
|
2022-03-31 22:19:30 +02:00
|
|
|
sudo rm /etc/apparmor.d/usr.lib.snapd.snap-confine.real
|
2021-12-02 13:35:13 +01:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2022-05-07 12:54:11 +02:00
|
|
|
# - name: Reload AppArmor
|
|
|
|
# run: |
|
|
|
|
# sudo systemctl restart apparmor.service || true
|
|
|
|
# sudo systemctl status apparmor.service
|
2021-12-02 13:35:13 +01:00
|
|
|
|
2022-05-07 12:54:11 +02:00
|
|
|
# - name: Show AppArmor log
|
|
|
|
# run: sudo aa-log
|