]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
github: Enable landlock in tests 4579/head
authorStéphane Graber <stgraber@stgraber.org>
Sat, 30 Aug 2025 04:45:12 +0000 (00:45 -0400)
committerStéphane Graber <stgraber@stgraber.org>
Sun, 31 Aug 2025 21:50:06 +0000 (17:50 -0400)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
.github/workflows/tests.yml

index c2c8ff39f103d426b13e542e65adf836403e0616..d42f9bd4fef4931b34fc8824277302cf237aa397 100644 (file)
@@ -87,6 +87,12 @@ jobs:
         env:
           CC: ${{ matrix.compiler }}
         run: |
+          # Landlock support
+          landlock=false
+          if [ -e /usr/include/linux/landlock.h ]; then
+            landlock=true
+          fi
+
           # Standard build
           if [ "${{ matrix.variant }}" = "default" ]; then
               meson setup build \
@@ -94,6 +100,7 @@ jobs:
                   -Dtests=true \
                   -Dpam-cgroup=true \
                   -Dtools-multicall=true \
+                  -Dlandlock-monitor=${landlock} \
                   -Dwerror=true \
                   -Db_lto_mode=default
           elif [ "${{ matrix.variant }}" = "sanitizer" ]; then