Skip to content

Commit 3f16585

Browse files
committed
github: Enable landlock in tests
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
1 parent 226bbf6 commit 3f16585

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,20 @@ jobs:
8787
env:
8888
CC: ${{ matrix.compiler }}
8989
run: |
90+
# Landlock support
91+
landlock=false
92+
if [ -e /usr/include/linux/landlock.h ]; then
93+
landlock=true
94+
fi
95+
9096
# Standard build
9197
if [ "${{ matrix.variant }}" = "default" ]; then
9298
meson setup build \
9399
-Dprefix=/usr \
94100
-Dtests=true \
95101
-Dpam-cgroup=true \
96102
-Dtools-multicall=true \
103+
-Dlandlock-monitor=${landlock} \
97104
-Dwerror=true \
98105
-Db_lto_mode=default
99106
elif [ "${{ matrix.variant }}" = "sanitizer" ]; then

0 commit comments

Comments
 (0)