]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
github: Add a workflow to build libcgroup with samples enabled
authorTom Hromatka <tom.hromatka@oracle.com>
Thu, 18 May 2023 13:13:47 +0000 (07:13 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 23 May 2023 21:43:17 +0000 (15:43 -0600)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
.github/workflows/continuous-integration.yml

index e45498280b4dcdf0c6402ea2d19a4ef4c33bf549..232b43b5c6f619200a087ce6dc11a32f6cbf8ed4 100644 (file)
@@ -142,6 +142,24 @@ jobs:
     - name: Build the library
       run: make
 
+  buildsamples:
+    name: Build Samples
+    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 samples enabled
+      run: CFLAGS="$CFLAGS -Werror" ./configure --sysconfdir=/etc --localstatedir=/var --enable-code-coverage --enable-opaque-hierarchy="name=systemd" --enable-python --enable-samples
+    - name: Build the library
+      run: make
+
   functionaltestsv1:
     name: Cgroup v1 Functional Tests
     runs-on: ubuntu-20.04