]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
github: Add make distcheck Github Action
authorTom Hromatka <tom.hromatka@oracle.com>
Fri, 18 Mar 2022 14:49:30 +0000 (08:49 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 24 Mar 2022 13:45:34 +0000 (07:45 -0600)
Add a step to run `make distcheck` in the continuous integration
GitHub Action.

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

index f3c9d5bd9b5452f8b0b68f8c3925bafbd486b81c..a2595212be12e32298a7d2788fb6cea693508cfb 100644 (file)
@@ -107,6 +107,26 @@ jobs:
         name: Unit Test Code Coverage
         path: lcov.*
 
+  distcheckv1:
+    name: Cgroup v1 Dist Check
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Install container dependencies
+      run: sudo apt-get install lxc lxd
+    - uses: actions/checkout@v2
+      with:
+        submodules: false
+    - name: Initialize the directory
+      uses: ./.github/actions/setup-libcgroup
+    - name: Run make distcheck
+      run: make distcheck
+    - name: Display test logs
+      if: ${{ failure() }}
+      run: |
+        cat libcgroup-*/_build/sub/tests/ftests/ftests.sh.log
+        cat libcgroup-*/_build/sub/tests/ftests/ftests-nocontainer.sh.log
+
   functionaltestsv1:
     name: Cgroup v1 Functional Tests
     runs-on: ubuntu-latest