From: Kamalesh Babulal Date: Thu, 25 May 2023 09:07:43 +0000 (+0530) Subject: workflows/ci: add build test for samples and systemd disabled X-Git-Tag: v3.1.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=478603da2027f3cf0558f5256e30bffa8c6b4e81;p=thirdparty%2Flibcgroup.git 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 --- 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