From 478603da2027f3cf0558f5256e30bffa8c6b4e81 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Thu, 25 May 2023 14:37:43 +0530 Subject: [PATCH] workflows/ci: add build test for samples and systemd disabled 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 Signed-off-by: Tom Hromatka --- .github/workflows/continuous-integration.yml | 22 ++++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 232b43b5..ce217487 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -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 -- 2.47.2