]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Github workers have been increased from 2 to 4 cores, increase concurrency.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sat, 7 Mar 2026 22:18:54 +0000 (23:18 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 8 Mar 2026 20:38:36 +0000 (21:38 +0100)
.github/workflows/analyze.yml
.github/workflows/cmake.yml
.github/workflows/configure.yml
.github/workflows/libpng.yml
.github/workflows/link.yml
.github/workflows/osb.yml
.github/workflows/pigz.yml
.github/workflows/release.yml

index 3b77870dd6383d16b4cca41b34044371ae31e06b..4e7a819533181719f1a3d74774da405c6003cb53 100644 (file)
@@ -51,7 +51,7 @@ jobs:
         CI: true
 
     - name: Compile source code
-      run: cmake --build . -j2 --config Release > /dev/null
+      run: cmake --build . -j5 --config Release > /dev/null
 
   Clang:
     runs-on: ubuntu-latest
@@ -79,4 +79,4 @@ jobs:
     - name: Compile source code
       run: |
         scan-build --status-bugs \
-          cmake --build . -j2 --config Release > /dev/null
+          cmake --build . -j5 --config Release > /dev/null
index 212cb892ee5f5a529e64d7b334973b45578631b8..24d6f61535d4b30c9e77541ae7085bfe8934d114 100644 (file)
@@ -330,8 +330,6 @@ jobs:
             ldflags: -static
             gcov-exec: ${{ github.repository == 'zlib-ng/zlib-ng' && 'gcov' || 's390x-linux-gnu-gcov' }}
             coverage: ${{ github.repository == 'zlib-ng/zlib-ng' && 'el10_gcc_s390x_dfltcc' || 'ubuntu_gcc_s390x_dfltcc' }}
-            # The dedicated z15 test VM has 4 cores
-            parallels-jobs: 4
 
           - name: ${{ github.repository == 'zlib-ng/zlib-ng' && 'EL10 Clang' || 'Ubuntu GCC' }} S390X DFLTCC ASAN
             os: ${{ github.repository == 'zlib-ng/zlib-ng' && 'z15' || 'ubuntu-latest' }}
@@ -344,8 +342,6 @@ jobs:
             asan-options: detect_leaks=0
             gcov-exec: ${{ github.repository == 'zlib-ng/zlib-ng' && 'llvm-cov gcov' || 's390x-linux-gnu-gcov' }}
             coverage: ${{ github.repository == 'zlib-ng/zlib-ng' && 'el10_clang_s390x_dfltcc_asan' || 'ubuntu_gcc_s390x_dfltcc_asan' }}
-            # The dedicated z15 test VM has 4 cores
-            parallels-jobs: 4
 
           - name: ${{ github.repository == 'zlib-ng/zlib-ng' && 'EL10 Clang' || 'Ubuntu GCC' }} S390X DFLTCC UBSAN
             os: ${{ github.repository == 'zlib-ng/zlib-ng' && 'z15' || 'ubuntu-latest' }}
@@ -357,8 +353,6 @@ jobs:
             packages: qemu-user gcc-s390x-linux-gnu g++-s390x-linux-gnu libc-dev-s390x-cross
             gcov-exec: ${{ github.repository == 'zlib-ng/zlib-ng' && 'llvm-cov gcov' || 's390x-linux-gnu-gcov' }}
             coverage: ${{ github.repository == 'zlib-ng/zlib-ng' && 'el10_clang_s390x_dfltcc_ubsan' || 'ubuntu_gcc_s390x_dfltcc_ubsan' }}
-            # The dedicated z15 test VM has 4 cores
-            parallels-jobs: 4
 
           - name: ${{ github.repository == 'zlib-ng/zlib-ng' && 'EL10' || 'Ubuntu' }} Clang S390X DFLTCC ${{ (github.repository == 'zlib-ng/zlib-ng' && 'MSAN') || 'Compat' }}
             os: ${{ github.repository == 'zlib-ng/zlib-ng' && 'z15' || 'ubuntu-latest' }}
@@ -368,8 +362,6 @@ jobs:
               ${{ github.repository == 'zlib-ng/zlib-ng' && '-GNinja -DWITH_SANITIZER=Memory' || '-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-s390x.cmake -DZLIB_COMPAT=ON' }}
               -DWITH_DFLTCC_DEFLATE=ON -DWITH_DFLTCC_INFLATE=ON
             packages: qemu-user libc-dev-s390x-cross
-            # The dedicated z15 test VM has 4 cores
-            parallels-jobs: 4
             # Coverage disabled, causes MSAN errors
 
           - name: Ubuntu MinGW i686
@@ -380,7 +372,7 @@ jobs:
             gcov-exec: i686-w64-mingw32-gcov-posix
             coverage: ubuntu_gcc_mingw_i686
             # Limit parallel test jobs to prevent wine errors
-            parallels-jobs: 1
+            parallel-jobs: 1
 
           - name: Ubuntu MinGW x86_64
             os: ubuntu-latest
@@ -391,7 +383,7 @@ jobs:
             gcov-exec: x86_64-w64-mingw32-gcov-posix
             coverage: ubuntu_gcc_mingw_x86_64
              # Limit parallel test jobs to prevent wine errors
-            parallels-jobs: 1
+            parallel-jobs: 1
 
           - name: Ubuntu Clang-15
             os: ubuntu-latest
@@ -839,7 +831,7 @@ jobs:
           -DLIBCXX_INCLUDE_BENCHMARKS=OFF \
           -DLLVM_INCLUDE_TESTS=OFF \
           -DLLVM_INCLUDE_DOCS=OFF
-        cmake --build build -j3 -- cxx cxxabi
+        cmake --build build -j5 -- cxx cxxabi
         echo "LLVM_BUILD_DIR=`pwd`/build" >> $GITHUB_ENV
       env:
         CFLAGS: -O2
@@ -865,12 +857,12 @@ jobs:
         CI: true
 
     - name: Compile source code
-      run: cmake --build . --verbose -j2 --config ${{ matrix.build-config || 'Release' }}
+      run: cmake --build . --verbose -j5 --config ${{ matrix.build-config || 'Release' }}
 
     - name: Run test cases
       # Don't run tests on Windows ARM
       if: runner.os != 'Windows' || contains(matrix.name, 'ARM') == false
-      run: ctest --verbose -C Release -E benchmark_zlib --output-on-failure --max-width 120 -j ${{ matrix.parallels-jobs || '3' }}
+      run: ctest --verbose -C Release -E benchmark_zlib --output-on-failure --max-width 120 -j ${{ matrix.parallel-jobs || '5' }}
       env:
         ASAN_OPTIONS: ${{ matrix.asan-options || 'verbosity=0' }}:abort_on_error=1:halt_on_error=1
         MSAN_OPTIONS: ${{ matrix.msan-options || 'verbosity=0' }}:abort_on_error=1:halt_on_error=1
@@ -885,7 +877,7 @@ jobs:
         python3 -u -m venv ./venv
         source ./venv/${{ runner.os == 'Windows' && 'Scripts' || 'bin' }}/activate
         python3 -u -m pip install gcovr
-        python3 -m gcovr -j 3 --gcov-ignore-parse-errors --verbose \
+        python3 -m gcovr -j 5 --gcov-ignore-parse-errors --verbose \
           --exclude '(.*/|^)(_deps|benchmarks)/.*' \
           --exclude-unreachable-branches \
           --merge-mode-functions separate \
@@ -908,7 +900,7 @@ jobs:
 
     - name: Test benchmarks (crashtest only, no coverage data collection)
       if: contains(matrix.cmake-args, '-DWITH_BENCHMARKS=ON')
-      run: ctest --verbose -C Release -R ^benchmark_zlib$ --output-on-failure --max-width 120 -j ${{ matrix.parallels-jobs || '3' }}
+      run: ctest --verbose -C Release -R ^benchmark_zlib$ --output-on-failure --max-width 120 -j ${{ matrix.parallel-jobs || '5' }}
       env:
         ASAN_OPTIONS: ${{ matrix.asan-options || 'verbosity=0' }}:abort_on_error=1:halt_on_error=1
         MSAN_OPTIONS: ${{ matrix.msan-options || 'verbosity=0' }}:abort_on_error=1:halt_on_error=1
index 231d038048118a89cc0e2e0e66485a156693f0ec..f45ecd21b8319919c3f6c7823e69ca29281a387d 100644 (file)
@@ -275,7 +275,7 @@ jobs:
         CI: true
 
     - name: Compile source code
-      run: make -j2
+      run: make -j5
       working-directory: ${{ matrix.build-dir }}
 
     - name: Run test cases
index 656c36de82b4716b2156da886a910c6aa4d752a8..bbba799beb7f6f573da6c57a8abd2739d5632afa 100644 (file)
@@ -23,7 +23,7 @@ jobs:
         CI: true
 
     - name: Compile source code (zlib-ng)
-      run: cmake --build . -j2 --config Release
+      run: cmake --build . -j5 --config Release
 
     - name: Checkout repository (libpng)
       uses: actions/checkout@v6
@@ -46,9 +46,9 @@ jobs:
         CI: true
 
     - name: Compile source code (libpng)
-      run: cmake --build . -j2 --config Release
+      run: cmake --build . -j5 --config Release
       working-directory: libpng
 
     - name: Run test cases (libpng)
-      run: ctest -j2 -C Release --output-on-failure --max-width 120
+      run: ctest -j5 -C Release --output-on-failure --max-width 120
       working-directory: libpng
index b42aec235797dfc79c3305003a8b0d924aee71f0..369ae85ba5caff63aec742addfb0dfe9eb80b7ea 100644 (file)
@@ -21,13 +21,13 @@ jobs:
       run: cmake -S zlib -B zlib/build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
 
     - name: Compile source code (zlib)
-      run: cmake --build zlib/build -j2 --config Release
+      run: cmake --build zlib/build -j5 --config Release
 
     - name: Generate project files (native)
       run: cmake -S . -B native -DZLIB_COMPAT=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DZLIB_LIBRARIES=../zlib/build/libz.a -DZLIB_INCLUDE_DIR="../zlib/build;../zlib"
 
     - name: Compile source code (native)
-      run: cmake --build native -j2 --config Release
+      run: cmake --build native -j5 --config Release
 
     - name: Upload build errors
       uses: actions/upload-artifact@v7
@@ -52,13 +52,13 @@ jobs:
       run: cmake -S . -B compat -DZLIB_COMPAT=ON -DZLIB_ENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DWITH_MAINTAINER_WARNINGS=ON
 
     - name: Compile source code (compat)
-      run: cmake --build compat -j2 --config Release
+      run: cmake --build compat -j5 --config Release
 
     - name: Generate project files (native)
       run: cmake -S . -B native -DZLIB_COMPAT=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DZLIB_LIBRARIES=../compat/libz.a -DZLIB_INCLUDE_DIR=../compat
 
     - name: Compile source code (native)
-      run: cmake --build native -j2 --config Release
+      run: cmake --build native -j5 --config Release
 
     - name: Upload build errors
       uses: actions/upload-artifact@v7
index 56448cd3936f67b868984a77916a7e11f5635286..c3a6a05a697ac952ae2086d95fb0667be59632ce 100644 (file)
@@ -47,10 +47,10 @@ jobs:
         CI: true
 
     - name: Compile source code
-      run: cmake --build ${{ matrix.build-dir || '.' }} --verbose -j2
+      run: cmake --build ${{ matrix.build-dir || '.' }} --verbose -j5
 
     - name: Run test cases
-      run: ctest --verbose -C Release --output-on-failure --max-width 120 -j 3
+      run: ctest --verbose -C Release --output-on-failure --max-width 120 -j 5
       working-directory: ${{ matrix.build-dir || '.' }}
 
     - name: Make source tree writable
index a4f8f64b53b7ece94ae9c8d481e48ca6729bcc32..6272074a65eae6ff58ff66d7341fb1cd00a4f8e9 100644 (file)
@@ -92,18 +92,18 @@ jobs:
         CI: true
 
     - name: Compile source code
-      run: cmake --build . -j2 --config ${{ matrix.build-config || 'Release' }}
+      run: cmake --build . -j5 --config ${{ matrix.build-config || 'Release' }}
       working-directory: test/pigz
 
     - name: Run test cases
-      run: ctest --verbose -C Release --output-on-failure --max-width 120 -j ${{ matrix.parallels-jobs || '3' }}
+      run: ctest --verbose -C Release --output-on-failure --max-width 120 -j ${{ matrix.parallel-jobs || '5' }}
       working-directory: test/pigz
 
     - name: Generate coverage report
       if: matrix.coverage
       run: |
         python3 -u -m pip install gcovr
-        python3 -m gcovr -j 3 --gcov-ignore-parse-errors --verbose \
+        python3 -m gcovr -j 5 --gcov-ignore-parse-errors --verbose \
           --exclude '(.*/|^)(_deps|benchmarks)/.*' \
           --exclude-unreachable-branches \
           --merge-mode-functions separate \
index fb6cc304547f452716a6a012d774b7e65f9fa168..b4c967b11a7606f821b82dc156d9de5b775567b1 100644 (file)
@@ -82,7 +82,7 @@ jobs:
         CI: true
 
     - name: Compile source code
-      run: cmake --build . -j2 --config Release --target install
+      run: cmake --build . -j5 --config Release --target install
 
     - name: Package release (Windows)
       if: runner.os == 'Windows'