mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
36 lines
915 B
YAML
36 lines
915 B
YAML
name: Ubuntu
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
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 auditd apparmor-profiles
|
|
sudo rm /etc/apparmor.d/usr.lib.snapd.snap-confine.real
|
|
|
|
- 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: Show Number of loaded profile
|
|
run: sudo aa-status --profiled
|