]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
workflows/ci: add build test for samples and systemd disabled 341/head
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 25 May 2023 09:07:43 +0000 (14:37 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 25 May 2023 19:25:33 +0000 (13:25 -0600)
Fold the build tests under single job "build tests" and also add build
test with  samples=yes and systemd=no.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
.github/workflows/continuous-integration.yml

index 232b43b5c6f619200a087ce6dc11a32f6cbf8ed4..ce21748747750e7fb8724246775dce8369c30240 100644 (file)
@@ -124,8 +124,8 @@ jobs:
       run: |
         cat libcgroup-*/_build/sub/tests/ftests/ftests-wrapper.sh.log
 
-  withoutsystemd:
-    name: Systemd Support Disabled
+  buildtests:
+    name: Build tests
     runs-on: ubuntu-20.04
 
     steps:
@@ -141,24 +141,14 @@ jobs:
       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
-
-  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
+    - name: Reconfigure libcgroup with systemd disabled and samples enabled
+      run: CFLAGS="$CFLAGS -Werror" ./configure --sysconfdir=/etc --localstatedir=/var --enable-code-coverage --enable-opaque-hierarchy="name=systemd" --enable-python --enable-systemd=no --enable-samples
+    - name: Build the library
+      run: make
 
   functionaltestsv1:
     name: Cgroup v1 Functional Tests