mirror of
https://github.com/postgres/postgres.git
synced 2026-04-21 14:19:26 -04:00
ci: Run headerscheck and cpluspluscheck in parallel
This can save several seconds of wall-clock time for that task. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/b49e74d4-3cf9-4d1c-9dce-09f75e55d026%40eisentraut.org
This commit is contained in:
parent
0f17d1dbfa
commit
085a531983
1 changed files with 2 additions and 3 deletions
|
|
@ -1004,6 +1004,7 @@ task:
|
|||
###
|
||||
# Verify headerscheck / cpluspluscheck succeed
|
||||
#
|
||||
# - Run both in same script to increase parallelism, use -k to get result of both
|
||||
# - Use -fmax-errors, as particularly cpluspluscheck can be very verbose
|
||||
###
|
||||
always:
|
||||
|
|
@ -1014,9 +1015,7 @@ task:
|
|||
--quiet \
|
||||
CC="ccache gcc" CXX="ccache g++" CLANG="ccache clang"
|
||||
make -s -j${BUILD_JOBS} clean
|
||||
time make -s headerscheck EXTRAFLAGS='-fmax-errors=10'
|
||||
headers_cpluspluscheck_script: |
|
||||
time make -s cpluspluscheck EXTRAFLAGS='-fmax-errors=10'
|
||||
time make -s -j${BUILD_JOBS} -k ${CHECKFLAGS} headerscheck cpluspluscheck EXTRAFLAGS='-fmax-errors=10'
|
||||
|
||||
always:
|
||||
upload_caches: ccache
|
||||
|
|
|
|||
Loading…
Reference in a new issue