+++ /dev/null
-abi <abi/4.0>,
-include <tunables/global>
-
-# https://bugs.launchpad.net/ubuntu/+source/guix/+bug/2064115
-
-profile guix /usr/bin/guix flags=(unconfined) {
- userns,
-
- # Site-specific additions and overrides. See local/README for details.
- include if exists <local/guix>
-}
key: sources-${{ hashFiles('contrib/depends/packages/*') }}
- name: install dependencies
run: sudo apt update; sudo apt -y install guix git ca-certificates apparmor-utils
- - name: fix apparmor
- run: sudo cp .github/workflows/guix /etc/apparmor.d/guix; sudo /etc/init.d/apparmor reload; sudo aa-enforce guix || echo "failed"
- - name: purge apparmor
- run: sudo apt purge apparmor
+ - name: apparmor workaround
+ # https://bugs.launchpad.net/ubuntu/+source/guix/+bug/2064115
+ run: |
+ sudo tee /etc/apparmor.d/guix << EOF
+ abi <abi/4.0>,
+ include <tunables/global>
+ profile guix /usr/bin/guix flags=(unconfined) {
+ userns,
+ include if exists <local/guix>
+ }
+ EOF
+ sudo /etc/init.d/apparmor reload
+ sudo aa-enforce guix || true
+ sudo apt purge apparmor
- name: build
run: SUBSTITUTE_URLS='http://bordeaux.guix.gnu.org' HOSTS="${{ matrix.toolchain.target }}" ./contrib/guix/guix-build
- name: virustotal scan