ci: dump curl_config.h to log in all jobs
Also: - GHA/windows: merge full and brief dump into a single job step. - fix shellcheck warning 'useless cat'. Closes #15266
This commit is contained in:
parent
617feb7c93
commit
7bff686476
2
.github/workflows/http3-linux.yml
vendored
2
.github/workflows/http3-linux.yml
vendored
@ -501,7 +501,7 @@ jobs:
|
|||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
run: |
|
run: |
|
||||||
echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
|
echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
|
||||||
cat lib/curl_config.h | grep -F '#define' | sort || true
|
grep -F '#define' lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'test configs'
|
- name: 'test configs'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
15
.github/workflows/linux-old.yml
vendored
15
.github/workflows/linux-old.yml
vendored
@ -84,6 +84,11 @@ jobs:
|
|||||||
make install
|
make install
|
||||||
src/curl --disable --version
|
src/curl --disable --version
|
||||||
|
|
||||||
|
- name: 'cmake build-only curl_config.h'
|
||||||
|
run: |
|
||||||
|
echo '::group::raw'; cat bld-1/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
grep -F '#define' bld-1/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'cmake generate (out-of-tree, c-ares, libssh, zstd, gssapi)'
|
- name: 'cmake generate (out-of-tree, c-ares, libssh, zstd, gssapi)'
|
||||||
run: |
|
run: |
|
||||||
mkdir bld-cares
|
mkdir bld-cares
|
||||||
@ -92,6 +97,11 @@ jobs:
|
|||||||
-DENABLE_ARES=ON -DCURL_ZSTD=ON -DCURL_USE_GSSAPI=ON -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=ON -DUSE_LIBRTMP=ON \
|
-DENABLE_ARES=ON -DCURL_ZSTD=ON -DCURL_USE_GSSAPI=ON -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=ON -DUSE_LIBRTMP=ON \
|
||||||
-DCURL_LIBCURL_VERSIONED_SYMBOLS=ON
|
-DCURL_LIBCURL_VERSIONED_SYMBOLS=ON
|
||||||
|
|
||||||
|
- name: 'cmake curl_config.h'
|
||||||
|
run: |
|
||||||
|
echo '::group::raw'; cat bld-cares/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
grep -F '#define' bld-cares/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'cmake build'
|
- name: 'cmake build'
|
||||||
run: |
|
run: |
|
||||||
make -C bld-cares
|
make -C bld-cares
|
||||||
@ -117,6 +127,11 @@ jobs:
|
|||||||
--with-openssl --enable-ares --with-libssh --with-zstd --with-gssapi --with-librtmp \
|
--with-openssl --enable-ares --with-libssh --with-zstd --with-gssapi --with-librtmp \
|
||||||
--prefix="$PWD"/../install-am
|
--prefix="$PWD"/../install-am
|
||||||
|
|
||||||
|
- name: 'autoconf curl_config.h'
|
||||||
|
run: |
|
||||||
|
echo '::group::raw'; cat bld-am/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
grep -F '#define' bld-am/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'autoconf build'
|
- name: 'autoconf build'
|
||||||
run: |
|
run: |
|
||||||
make -C bld-am
|
make -C bld-am
|
||||||
|
|||||||
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -610,7 +610,7 @@ jobs:
|
|||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
run: |
|
run: |
|
||||||
echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
|
echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
|
||||||
cat lib/curl_config.h | grep -F '#define' | sort || true
|
grep -F '#define' lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'test configs'
|
- name: 'test configs'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
5
.github/workflows/linux32.yml
vendored
5
.github/workflows/linux32.yml
vendored
@ -74,6 +74,11 @@ jobs:
|
|||||||
${{ matrix.build.configure }}
|
${{ matrix.build.configure }}
|
||||||
name: 'configure'
|
name: 'configure'
|
||||||
|
|
||||||
|
- name: 'curl_config.h'
|
||||||
|
run: |
|
||||||
|
echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
grep -F '#define' lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- run: make V=1
|
- run: make V=1
|
||||||
name: 'make'
|
name: 'make'
|
||||||
|
|
||||||
|
|||||||
6
.github/workflows/macos.yml
vendored
6
.github/workflows/macos.yml
vendored
@ -205,7 +205,7 @@ jobs:
|
|||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
run: |
|
run: |
|
||||||
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'build-cert'
|
- name: 'build-cert'
|
||||||
if: contains(matrix.configure, '--with-secure-transport')
|
if: contains(matrix.configure, '--with-secure-transport')
|
||||||
@ -363,7 +363,7 @@ jobs:
|
|||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
run: |
|
run: |
|
||||||
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'build-cert'
|
- name: 'build-cert'
|
||||||
if: contains(matrix.build.generate, '-DCURL_USE_SECTRANSP=ON')
|
if: contains(matrix.build.generate, '-DCURL_USE_SECTRANSP=ON')
|
||||||
@ -643,7 +643,7 @@ jobs:
|
|||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
run: |
|
run: |
|
||||||
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'build / ${{ matrix.build }}'
|
- name: 'build / ${{ matrix.build }}'
|
||||||
run: make -C bld V=1 VERBOSE=1
|
run: make -C bld V=1 VERBOSE=1
|
||||||
|
|||||||
10
.github/workflows/non-native.yml
vendored
10
.github/workflows/non-native.yml
vendored
@ -61,6 +61,8 @@ jobs:
|
|||||||
-DCURL_USE_OPENSSL=ON \
|
-DCURL_USE_OPENSSL=ON \
|
||||||
-DCURL_BROTLI=ON -DCURL_USE_GSSAPI=ON \
|
-DCURL_BROTLI=ON -DCURL_USE_GSSAPI=ON \
|
||||||
|| { cat bld/CMakeFiles/CMake*.yaml; false; }
|
|| { cat bld/CMakeFiles/CMake*.yaml; false; }
|
||||||
|
echo '::group::curl_config.h (raw)'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
echo '::group::curl_config.h'; grep -F '#define' bld/lib/curl_config.h | sort || true; echo '::endgroup::'
|
||||||
cmake --build bld --config Debug
|
cmake --build bld --config Debug
|
||||||
bld/src/curl --disable --version
|
bld/src/curl --disable --version
|
||||||
if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU
|
if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU
|
||||||
@ -97,6 +99,8 @@ jobs:
|
|||||||
-DCURL_USE_OPENSSL=ON \
|
-DCURL_USE_OPENSSL=ON \
|
||||||
-DCURL_BROTLI=ON \
|
-DCURL_BROTLI=ON \
|
||||||
|| { cat bld/CMakeFiles/CMake*.yaml; false; }
|
|| { cat bld/CMakeFiles/CMake*.yaml; false; }
|
||||||
|
echo '::group::curl_config.h (raw)'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
echo '::group::curl_config.h'; grep -F '#define' bld/lib/curl_config.h | sort || true; echo '::endgroup::'
|
||||||
cmake --build bld --config Debug
|
cmake --build bld --config Debug
|
||||||
bld/src/curl --disable --version
|
bld/src/curl --disable --version
|
||||||
if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU
|
if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU
|
||||||
@ -139,6 +143,8 @@ jobs:
|
|||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-brotli --enable-ldap --enable-ldaps --with-libidn2 --with-libssh2 --with-nghttp2 --with-gssapi \
|
--with-brotli --enable-ldap --enable-ldaps --with-libidn2 --with-libssh2 --with-nghttp2 --with-gssapi \
|
||||||
--disable-dependency-tracking || { tail -n 1000 config.log; false; }
|
--disable-dependency-tracking || { tail -n 1000 config.log; false; }
|
||||||
|
echo '::group::curl_config.h (raw)'; cat lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
echo '::group::curl_config.h'; grep -F '#define' lib/curl_config.h | sort || true; echo '::endgroup::'
|
||||||
make -j3 install
|
make -j3 install
|
||||||
src/curl --disable --version
|
src/curl --disable --version
|
||||||
if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU
|
if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU
|
||||||
@ -168,6 +174,8 @@ jobs:
|
|||||||
-DCURL_USE_OPENSSL=ON \
|
-DCURL_USE_OPENSSL=ON \
|
||||||
-DCURL_BROTLI=ON -DCURL_USE_GSSAPI=ON \
|
-DCURL_BROTLI=ON -DCURL_USE_GSSAPI=ON \
|
||||||
|| { cat bld/CMakeFiles/CMake*.yaml; false; }
|
|| { cat bld/CMakeFiles/CMake*.yaml; false; }
|
||||||
|
echo '::group::curl_config.h (raw)'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
echo '::group::curl_config.h'; grep -F '#define' bld/lib/curl_config.h | sort || true; echo '::endgroup::'
|
||||||
cmake --build bld --config Debug
|
cmake --build bld --config Debug
|
||||||
bld/src/curl --disable --version
|
bld/src/curl --disable --version
|
||||||
if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU
|
if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU
|
||||||
@ -198,6 +206,8 @@ jobs:
|
|||||||
--prefix="${HOME}"/install \
|
--prefix="${HOME}"/install \
|
||||||
--with-openssl \
|
--with-openssl \
|
||||||
--disable-dependency-tracking || { tail -n 1000 config.log; false; }
|
--disable-dependency-tracking || { tail -n 1000 config.log; false; }
|
||||||
|
echo '::group::curl_config.h (raw)'; cat lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
echo '::group::curl_config.h'; grep -F '#define' lib/curl_config.h | sort || true; echo '::endgroup::'
|
||||||
gmake -j3 install
|
gmake -j3 install
|
||||||
src/curl --disable --version
|
src/curl --disable --version
|
||||||
gmake -j3 -C tests
|
gmake -j3 -C tests
|
||||||
|
|||||||
5
.github/workflows/torture.yml
vendored
5
.github/workflows/torture.yml
vendored
@ -72,6 +72,11 @@ jobs:
|
|||||||
${{ matrix.build.generate }}
|
${{ matrix.build.generate }}
|
||||||
name: 'cmake configure'
|
name: 'cmake configure'
|
||||||
|
|
||||||
|
- name: 'cmake curl_config.h'
|
||||||
|
run: |
|
||||||
|
echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
grep -F '#define' lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- run: cmake --build . --verbose
|
- run: cmake --build . --verbose
|
||||||
name: 'cmake build'
|
name: 'cmake build'
|
||||||
|
|
||||||
|
|||||||
58
.github/workflows/windows.yml
vendored
58
.github/workflows/windows.yml
vendored
@ -94,11 +94,9 @@ jobs:
|
|||||||
|
|
||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
if: ${{ matrix.build == 'automake' }}
|
if: ${{ matrix.build == 'automake' }}
|
||||||
run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
run: |
|
||||||
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
- name: 'curl_config.h (full)'
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
if: ${{ matrix.build == 'automake' }}
|
|
||||||
run: cat bld/lib/curl_config.h || true
|
|
||||||
|
|
||||||
- name: 'autotools build'
|
- name: 'autotools build'
|
||||||
if: ${{ matrix.build == 'automake' }}
|
if: ${{ matrix.build == 'automake' }}
|
||||||
@ -144,11 +142,9 @@ jobs:
|
|||||||
|
|
||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
if: ${{ matrix.build == 'cmake' }}
|
if: ${{ matrix.build == 'cmake' }}
|
||||||
run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
run: |
|
||||||
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
- name: 'curl_config.h (full)'
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
if: ${{ matrix.build == 'cmake' }}
|
|
||||||
run: cat bld/lib/curl_config.h || true
|
|
||||||
|
|
||||||
- name: 'cmake build'
|
- name: 'cmake build'
|
||||||
if: ${{ matrix.build == 'cmake' }}
|
if: ${{ matrix.build == 'cmake' }}
|
||||||
@ -264,11 +260,9 @@ jobs:
|
|||||||
|
|
||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
if: ${{ matrix.build == 'autotools' }}
|
if: ${{ matrix.build == 'autotools' }}
|
||||||
run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
run: |
|
||||||
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
- name: 'curl_config.h (full)'
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
if: ${{ matrix.build == 'autotools' }}
|
|
||||||
run: cat bld/lib/curl_config.h || true
|
|
||||||
|
|
||||||
- name: 'autotools build'
|
- name: 'autotools build'
|
||||||
if: ${{ matrix.build == 'autotools' }}
|
if: ${{ matrix.build == 'autotools' }}
|
||||||
@ -354,11 +348,9 @@ jobs:
|
|||||||
|
|
||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
if: ${{ matrix.build == 'cmake' }}
|
if: ${{ matrix.build == 'cmake' }}
|
||||||
run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
run: |
|
||||||
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
- name: 'curl_config.h (full)'
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
if: ${{ matrix.build == 'cmake' }}
|
|
||||||
run: cat bld/lib/curl_config.h || true
|
|
||||||
|
|
||||||
- name: 'cmake build'
|
- name: 'cmake build'
|
||||||
if: ${{ matrix.build == 'cmake' }}
|
if: ${{ matrix.build == 'cmake' }}
|
||||||
@ -484,10 +476,9 @@ jobs:
|
|||||||
run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
|
run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
|
||||||
|
|
||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
run: |
|
||||||
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
- name: 'curl_config.h (full)'
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
run: cat bld/lib/curl_config.h || true
|
|
||||||
|
|
||||||
- name: 'cmake build'
|
- name: 'cmake build'
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
@ -569,6 +560,12 @@ jobs:
|
|||||||
if: ${{ matrix.build == 'autotools' && !cancelled() }}
|
if: ${{ matrix.build == 'autotools' && !cancelled() }}
|
||||||
run: cat bld/config.log 2>/dev/null || true
|
run: cat bld/config.log 2>/dev/null || true
|
||||||
|
|
||||||
|
- name: 'curl_config.h'
|
||||||
|
if: ${{ matrix.build == 'autotools' }}
|
||||||
|
run: |
|
||||||
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'autotools build'
|
- name: 'autotools build'
|
||||||
if: ${{ matrix.build == 'autotools' }}
|
if: ${{ matrix.build == 'autotools' }}
|
||||||
run: make -C bld -j5
|
run: make -C bld -j5
|
||||||
@ -593,6 +590,12 @@ jobs:
|
|||||||
if: ${{ matrix.build == 'cmake' && !cancelled() }}
|
if: ${{ matrix.build == 'cmake' && !cancelled() }}
|
||||||
run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
|
run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
|
||||||
|
|
||||||
|
- name: 'curl_config.h'
|
||||||
|
if: ${{ matrix.build == 'cmake' }}
|
||||||
|
run: |
|
||||||
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
|
|
||||||
- name: 'cmake build'
|
- name: 'cmake build'
|
||||||
if: ${{ matrix.build == 'cmake' }}
|
if: ${{ matrix.build == 'cmake' }}
|
||||||
run: cmake --build bld
|
run: cmake --build bld
|
||||||
@ -763,10 +766,9 @@ jobs:
|
|||||||
run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
|
run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
|
||||||
|
|
||||||
- name: 'curl_config.h'
|
- name: 'curl_config.h'
|
||||||
run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
|
run: |
|
||||||
|
echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
|
||||||
- name: 'curl_config.h (full)'
|
grep -F '#define' bld/lib/curl_config.h | sort || true
|
||||||
run: cat bld/lib/curl_config.h || true
|
|
||||||
|
|
||||||
- name: 'cmake build'
|
- name: 'cmake build'
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
|||||||
@ -62,6 +62,7 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then
|
|||||||
'-DCMAKE_INSTALL_PREFIX=C:/curl' \
|
'-DCMAKE_INSTALL_PREFIX=C:/curl' \
|
||||||
"-DCMAKE_BUILD_TYPE=${PRJ_CFG}" \
|
"-DCMAKE_BUILD_TYPE=${PRJ_CFG}" \
|
||||||
'-DCURL_USE_LIBPSL=OFF'
|
'-DCURL_USE_LIBPSL=OFF'
|
||||||
|
echo 'curl_config.h'; grep -F '#define' _bld/lib/curl_config.h | sort || true
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
if ! cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-}; then
|
if ! cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-}; then
|
||||||
if [ "${PRJ_GEN}" = 'Visual Studio 9 2008' ]; then
|
if [ "${PRJ_GEN}" = 'Visual Studio 9 2008' ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user