diff options
author | Björn Esser <besser82@fedoraproject.org> | 2021-08-05 22:40:28 +0200 |
---|---|---|
committer | Björn Esser <besser82@fedoraproject.org> | 2021-08-05 23:25:27 +0200 |
commit | 1d1c34ea6469c9b1565a867687bfb16c973d672c (patch) | |
tree | 6fd3d16771355c014c60fe3f90b4627c6a5e8339 | |
parent | b090eff3a8e3e02ae3d65bc2e8662daec6ee5c59 (diff) | |
download | libxcrypt-1d1c34ea6469c9b1565a867687bfb16c973d672c.tar.gz libxcrypt-1d1c34ea6469c9b1565a867687bfb16c973d672c.tar.bz2 libxcrypt-1d1c34ea6469c9b1565a867687bfb16c973d672c.zip |
CI: Run make with parallel jobs.
This cuts down build times for code coverage
and memory access checking drastically.
-rw-r--r-- | .github/workflows/codecov.yml | 9 | ||||
-rw-r--r-- | .github/workflows/codeql.yml | 7 | ||||
-rw-r--r-- | .github/workflows/config-matrix.yml | 9 | ||||
-rw-r--r-- | .github/workflows/coverity.yml | 12 | ||||
-rw-r--r-- | .github/workflows/distcheck.yml | 5 | ||||
-rw-r--r-- | .github/workflows/memcheck.yml | 15 |
6 files changed, 46 insertions, 11 deletions
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index fc6f8f1..c1dc7f0 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -68,6 +68,9 @@ jobs: id: build-tools run: ./build-aux/ci-log-dependency-versions + - name: Get nprocs + run: echo "NPROCS=$((`nproc --all 2>/dev/null || sysctl -n hw.ncpu` * 2))" | tee $GITHUB_ENV + - name: Cache bootstrap id: cache uses: actions/cache@v2 @@ -102,10 +105,12 @@ jobs: run: ./configure $CONFIG_OPTS - name: Build - run: make all test-programs + run: | + make -j${{ env.NPROCS }} all + make -j${{ env.NPROCS }} test-programs - name: Test - run: make check + run: make -j${{ env.NPROCS }} check - name: Summarize coverage data run: ./build-aux/summarize-coverage coverage.info diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 14e33d8..f3f14fe 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -55,6 +55,9 @@ jobs: id: build-tools run: ./build-aux/ci-log-dependency-versions + - name: Get nprocs + run: echo "NPROCS=$((`nproc --all 2>/dev/null || sysctl -n hw.ncpu` * 2))" | tee $GITHUB_ENV + - name: Cache bootstrap id: cache uses: actions/cache@v2 @@ -89,7 +92,9 @@ jobs: run: ./configure --enable-obsolete-api --enable-hashes=all - name: Build - run: make all test-programs + run: | + make -j${{ env.NPROCS }} all + make -j${{ env.NPROCS }} test-programs - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/config-matrix.yml b/.github/workflows/config-matrix.yml index 50a9a18..501de78 100644 --- a/.github/workflows/config-matrix.yml +++ b/.github/workflows/config-matrix.yml @@ -84,6 +84,9 @@ jobs: id: build-tools run: ./build-aux/ci-log-dependency-versions + - name: Get nprocs + run: echo "NPROCS=$((`nproc --all 2>/dev/null || sysctl -n hw.ncpu` * 2))" | tee $GITHUB_ENV + - name: Cache bootstrap id: cache uses: actions/cache@v2 @@ -118,10 +121,12 @@ jobs: run: ./build-aux/configure-wrapper $CONFIG_OPTS - name: Build - run: make all test-programs + run: | + make -j${{ env.NPROCS }} all + make -j${{ env.NPROCS }} test-programs - name: Test - run: make check + run: make -j${{ env.NPROCS }} check - name: Detailed error logs if: failure() diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 8feaccf..9629c14 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -87,6 +87,9 @@ jobs: id: build-tools run: ./build-aux/ci-log-dependency-versions + - name: Get nprocs + run: echo "NPROCS=$((`nproc --all 2>/dev/null || sysctl -n hw.ncpu` * 2))" | tee $GITHUB_ENV + - name: Cache bootstrap id: cache uses: actions/cache@v2 @@ -120,10 +123,17 @@ jobs: - name: Configure run: ./configure --disable-werror --enable-obsolete-api --enable-hashes=all + - name: Prepare build script + run: | + echo '#! /bin/sh' > cov_make.sh + echo "make -j${{ env.NPROCS }} all" >> cov_make.sh + echo "make -j${{ env.NPROCS }} test-programs" >> cov_make.sh + chmod +x cov_make.sh + - name: Build run: | export PATH=$(cd .. && pwd)/cov-analysis-linux64/bin:$PATH - cov-build --dir cov-int make all test-programs + cov-build --dir cov-int ./cov_make.sh cov-import-scm --dir cov-int --scm git --log cov-int/scm_log.txt - name: Upload analysis results diff --git a/.github/workflows/distcheck.yml b/.github/workflows/distcheck.yml index ba6a6b3..cee85b6 100644 --- a/.github/workflows/distcheck.yml +++ b/.github/workflows/distcheck.yml @@ -62,6 +62,9 @@ jobs: id: build-tools run: ./build-aux/ci-log-dependency-versions + - name: Get nprocs + run: echo "NPROCS=$((`nproc --all 2>/dev/null || sysctl -n hw.ncpu` * 2))" | tee $GITHUB_ENV + - name: Cache bootstrap id: cache uses: actions/cache@v2 @@ -98,7 +101,7 @@ jobs: run: ./configure - name: Test - run: make distcheck + run: make -j${{ env.NPROCS }} distcheck - name: Detailed error logs if: failure() diff --git a/.github/workflows/memcheck.yml b/.github/workflows/memcheck.yml index 94cb38a..aada864 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -47,6 +47,9 @@ jobs: id: build-tools run: ./build-aux/ci-log-dependency-versions + - name: Get nprocs + run: echo "NPROCS=$((`nproc --all 2>/dev/null || sysctl -n hw.ncpu` * 2))" | tee $GITHUB_ENV + - name: Cache bootstrap id: cache uses: actions/cache@v2 @@ -81,10 +84,12 @@ jobs: run: ./build-aux/configure-wrapper --enable-obsolete-api --enable-hashes=all --enable-valgrind-memcheck - name: Build - run: make all test-programs + run: | + make -j${{ env.NPROCS }} all + make -j${{ env.NPROCS }} test-programs - name: Test - run: make check-valgrind-memcheck + run: make -j${{ env.NPROCS }} check-valgrind-memcheck - name: Detailed error logs if: failure() @@ -152,10 +157,12 @@ jobs: run: ./build-aux/configure-wrapper --enable-obsolete-api --enable-hashes=all - name: Build - run: make all test-programs UNDEF_FLAG= + run: | + make -j${{ env.NPROCS }} all UNDEF_FLAG= + make -j${{ env.NPROCS }} test-programs UNDEF_FLAG= - name: Test - run: make check + run: make -j${{ env.NPROCS }} check - name: Detailed error logs if: failure() |