summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2023-02-09 01:51:09 +0100
committerHans Kristian Rosbach <hk-github@circlestorm.org>2023-03-17 21:27:56 +0100
commitbc915bf1589d2d5a01d5aab6eff514d58f89bbc7 (patch)
tree5ee14cb41af34d3fc92ebc352a86dfdf63018dba
parentf1a1e0ecc279298e735a3ab98b5b1cc037f8fd7a (diff)
Adjust thread counts for compiles and tests to avoid under-utilization and congestion.
The free Github Actions VMs have 2 cores, the dedicated s390x VM has 4 cores.
-rw-r--r--.github/workflows/analyze.yml4
-rw-r--r--.github/workflows/cmake.yml14
-rw-r--r--.github/workflows/libpng.yml6
-rw-r--r--.github/workflows/pigz.yml4
-rw-r--r--.github/workflows/release.yml2
-rw-r--r--test/pkgcheck.sh2
6 files changed, 21 insertions, 11 deletions
diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml
index 17333d2..cbdea0e 100644
--- a/.github/workflows/analyze.yml
+++ b/.github/workflows/analyze.yml
@@ -49,7 +49,7 @@ jobs:
CI: true
- name: Compile source code
- run: cmake --build . --config Release > /dev/null
+ run: cmake --build . -j2 --config Release > /dev/null
Clang:
runs-on: ubuntu-latest
@@ -75,4 +75,4 @@ jobs:
- name: Compile source code
run: |
scan-build --status-bugs \
- cmake --build . --config Release > /dev/null
+ cmake --build . -j2 --config Release > /dev/null
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 987e35f..aaebc30 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -196,6 +196,8 @@ jobs:
packages: qemu qemu-user gcc-s390x-linux-gnu g++-s390x-linux-gnu libc-dev-s390x-cross
ldflags: -static
codecov: ubuntu_gcc_s390x
+ # The dedicated test VM has 4 cores
+ parallels-jobs: 4
- name: Ubuntu GCC S390X No vectorized CRC32 ASAN
os: ubuntu-latest
@@ -204,6 +206,8 @@ jobs:
packages: qemu qemu-user gcc-s390x-linux-gnu g++-s390x-linux-gnu libc-dev-s390x-cross
ldflags: -static
codecov: ubuntu_gcc_s390x_no_crc32
+ # The dedicated test VM has 4 cores
+ parallels-jobs: 4
- name: Ubuntu GCC S390X DFLTCC ASAN
os: z15
@@ -212,6 +216,8 @@ jobs:
asan-options: detect_leaks=0
ldflags: -static
codecov: ubuntu_gcc_s390x_dfltcc
+ # The dedicated test VM has 4 cores
+ parallels-jobs: 4
- name: Ubuntu GCC S390X DFLTCC Compat UBSAN
os: z15
@@ -219,11 +225,15 @@ jobs:
cmake-args: -DZLIB_COMPAT=ON -DWITH_DFLTCC_DEFLATE=ON -DWITH_DFLTCC_INFLATE=ON -DWITH_SANITIZER=Undefined
ldflags: -static
codecov: ubuntu_gcc_s390x_dfltcc_compat
+ # The dedicated test VM has 4 cores
+ parallels-jobs: 4
- name: Ubuntu Clang S390X DFLTCC MSAN
os: z15
compiler: clang-11
cmake-args: -GNinja -DWITH_DFLTCC_DEFLATE=ON -DWITH_DFLTCC_INFLATE=ON -DWITH_SANITIZER=Memory
+ # The dedicated test VM has 4 cores
+ parallels-jobs: 4
- name: Ubuntu MinGW i686
os: ubuntu-22.04
@@ -447,12 +457,12 @@ jobs:
CI: true
- name: Compile source code
- run: cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }}
+ run: cmake --build ${{ matrix.build-dir || '.' }} -j2 --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 --output-on-failure --max-width 120 -j ${{ matrix.parallels-jobs || '6' }}
+ run: ctest --verbose -C Release --output-on-failure --max-width 120 -j ${{ matrix.parallels-jobs || '3' }}
working-directory: ${{ matrix.build-dir || '.' }}
env:
ASAN_OPTIONS: ${{ matrix.asan-options || 'verbosity=0' }}:abort_on_error=1:halt_on_error=1
diff --git a/.github/workflows/libpng.yml b/.github/workflows/libpng.yml
index 9118a96..c5fea57 100644
--- a/.github/workflows/libpng.yml
+++ b/.github/workflows/libpng.yml
@@ -21,7 +21,7 @@ jobs:
CI: true
- name: Compile source code (zlib-ng)
- run: cmake --build . --config Release
+ run: cmake --build . -j2 --config Release
- name: Checkout repository (libpng)
uses: actions/checkout@v3
@@ -43,9 +43,9 @@ jobs:
CI: true
- name: Compile source code (libpng)
- run: cmake --build . --config Release
+ run: cmake --build . -j2 --config Release
working-directory: libpng
- name: Run test cases (libpng)
- run: ctest -C Release --output-on-failure --max-width 120
+ run: ctest -j2 -C Release --output-on-failure --max-width 120
working-directory: libpng
diff --git a/.github/workflows/pigz.yml b/.github/workflows/pigz.yml
index e90cb63..be4e1ce 100644
--- a/.github/workflows/pigz.yml
+++ b/.github/workflows/pigz.yml
@@ -89,11 +89,11 @@ jobs:
CI: true
- name: Compile source code
- run: cmake --build . --config ${{ matrix.build-config || 'Release' }}
+ run: cmake --build . -j2 --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 || '2' }}
+ run: ctest --verbose -C Release --output-on-failure --max-width 120 -j ${{ matrix.parallels-jobs || '3' }}
working-directory: test/pigz
- name: Generate coverage report
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 768cf48..b64933c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -80,7 +80,7 @@ jobs:
CI: true
- name: Compile source code
- run: cmake --build . --config Release --target install
+ run: cmake --build . -j2 --config Release --target install
- name: Package release (Windows)
if: runner.os == 'Windows'
diff --git a/test/pkgcheck.sh b/test/pkgcheck.sh
index 4c757df..832df8d 100644
--- a/test/pkgcheck.sh
+++ b/test/pkgcheck.sh
@@ -125,7 +125,7 @@ cd btmp1
;;
esac
../configure $CONFIGURE_ARGS
- make
+ make -j2
make install
cd ..