]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
github: Add a workflow to build libcgroup with SYSTEMD undefined
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 9 May 2023 20:51:44 +0000 (14:51 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 11 May 2023 19:50:04 +0000 (13:50 -0600)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
.github/workflows/continuous-integration.yml

index c8348f75285cc779e285598783072dafb5171102..e45498280b4dcdf0c6402ea2d19a4ef4c33bf549 100644 (file)
@@ -124,6 +124,24 @@ jobs:
       run: |
         cat libcgroup-*/_build/sub/tests/ftests/ftests-wrapper.sh.log
 
+  withoutsystemd:
+    name: Systemd Support Disabled
+    runs-on: ubuntu-20.04
+
+    steps:
+    - name: Install dependencies
+      run: |
+        sudo apt-get update
+    - uses: actions/checkout@v3
+      with:
+        submodules: false
+    - name: Initialize the directory
+      uses: ./.github/actions/setup-libcgroup
+    - name: Reconfigure libcgroup with systemd disabled
+      run: CFLAGS="$CFLAGS -Werror" ./configure --sysconfdir=/etc --localstatedir=/var --enable-code-coverage --enable-opaque-hierarchy="name=systemd" --enable-python --enable-systemd=no
+    - name: Build the library
+      run: make
+
   functionaltestsv1:
     name: Cgroup v1 Functional Tests
     runs-on: ubuntu-20.04