]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
[ci][gha] Miscellaneous improvements and sync with cirrus (#3976)
authorEmma Foley <elfiesmelfie@users.noreply.github.com>
Tue, 15 Feb 2022 14:14:15 +0000 (14:14 +0000)
committerGitHub <noreply@github.com>
Tue, 15 Feb 2022 14:14:15 +0000 (15:14 +0100)
* [ci][gha] Rename tasks

* [ci][gha] Update and use MAKEFLAGS

* [ci][gha] Remove continue-on-error from ``make distcheck`` tasks

Installation of bzip2 and make distcheck were failing on el8.
This was resolved by updating it to use CentOS Stream 8 in [1]

[1] https://github.com/collectd/ci-docker/pull/55

.github/workflows/build.yml

index f7430769f0e87a5294be71ecd3961853d4b8789f..570a8362ff274a0a91b7d2a1c8e17a08ca27b8d0 100644 (file)
@@ -37,7 +37,7 @@ jobs:
           - fedora28_x86_64
         config_flags: ['']
     env:
-      MAKEFLAGS: "-j 2"
+      MAKEFLAGS: "-j2 -sk"
       CONFIGURE_FLAGS: ${{ matrix.config_flags }}
       # this env var picked up by valgrind during make check phase
       VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
@@ -48,24 +48,21 @@ jobs:
     - name: Generate configure script
       run:
         ./build.sh
-    - name: configure
+    - name: Run configure script
       run: ./configure $CONFIGURE_FLAGS
-    - name: Make
-      run: make
-    - name: make check
-      continue-on-error: true
-      run: make check
+    - name: Build collectd
+      run: make $MAKEFLAGS
+    - name: Run make check
+      run: make $MAKEFLAGS check
     - name: Dump test logs
       run: |
           cat ./test-suite.log || true
-    - name: install bzip2
-      continue-on-error: true
+    - name: Install bzip2
       run: |
         yum install -y bzip2 || apt install -y bzip2
-    - name: make
-      continue-on-error: true
+    - name: Run make distcheck
       run: |
-        make distcheck DISTCHECK_CONFIGURE_FLAGS="--disable-dependency-tracking --enable-debug"
+        make $MAKEFLAG distcheck DISTCHECK_CONFIGURE_FLAGS="--disable-dependency-tracking --enable-debug"
 
   experimental:
     runs-on: ubuntu-20.04
@@ -87,7 +84,7 @@ jobs:
             cppflags: "-fPIE -Wno-deprecated-declarations"
             config_flags: "--disable-dpdkstat --disable-dpdkevents --disable-virt --disable-xmms"
     env:
-      MAKEFLAGS: "-j 2"
+      MAKEFLAGS: "-j2 -sk"
       CFLAGS: ${{ matrix.cflags }}
       CPPFLAGS: ${{ matrix.cppflags }}
       CONFIGURE_FLAGS: ${{ matrix.config_flags }}
@@ -99,23 +96,21 @@ jobs:
     - name: Generate configure script
       run:
         ./build.sh
-    - name: configure
+    - name: Run configure script
       run: ./configure $CONFIGURE_FLAGS
-    - name: Make
-      run: make
-    - name: make check
+    - name: Build collectd
+      run: make $MAKEFLAGS
+    - name: Run make check
       # Make check is failing on a few newer distros, temporarily mark it as optional until that is resolved 
       continue-on-error: true
-      run: make check
+      run: make $MAKEFLAGS check
     - name: Dump test logs
       run: |
           cat ./test-suite.log || true
-    - name: install bzip2
-      continue-on-error: true
+    - name: Install bzip2
       run: |
         yum install -y bzip2 || apt install -y bzip2
-    - name: make distcheck
-      continue-on-error: true
+    - name: Run make distcheck
       run: |
-        make distcheck DISTCHECK_CONFIGURE_FLAGS="--disable-dependency-tracking --enable-debug"
+        make $MAKEFLAGS distcheck DISTCHECK_CONFIGURE_FLAGS="--disable-dependency-tracking --enable-debug"