]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ci: dump `curl_config.h` to log in all jobs
authorViktor Szakats <commit@vsz.me>
Fri, 11 Oct 2024 11:40:48 +0000 (13:40 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 11 Oct 2024 13:01:29 +0000 (15:01 +0200)
Also:
- GHA/windows: merge full and brief dump into a single job step.
- fix shellcheck warning 'useless cat'.

Closes #15266

.github/workflows/http3-linux.yml
.github/workflows/linux-old.yml
.github/workflows/linux.yml
.github/workflows/linux32.yml
.github/workflows/macos.yml
.github/workflows/non-native.yml
.github/workflows/torture.yml
.github/workflows/windows.yml
appveyor.sh

index 508b4457a55ae269c76c15115d082193a5b76ead..ffabc0fc9cf17e5db97f7248113cbaba17eaa9cd 100644 (file)
@@ -501,7 +501,7 @@ jobs:
       - name: 'curl_config.h'
         run: |
           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'
         run: |
index 4a7a361a019035564ece1952456054d873713079..89e97c6530fa2b2c8d3e08f05200c6746eb25019 100644 (file)
@@ -84,6 +84,11 @@ jobs:
           make install
           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)'
         run: |
           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 \
             -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'
         run: |
           make -C bld-cares
@@ -117,6 +127,11 @@ jobs:
             --with-openssl --enable-ares --with-libssh --with-zstd --with-gssapi --with-librtmp \
             --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'
         run: |
           make -C bld-am
index 6ed72f6070ac8b953d3be502083b8eb80523379b..a6952d90940453e50364ab6379766aa20e1a06f4 100644 (file)
@@ -610,7 +610,7 @@ jobs:
       - name: 'curl_config.h'
         run: |
           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'
         run: |
index 9e8ce07b6ca7c6f104c642cd80ea265d984feaeb..888f3a0d67a2ec21d3a60125f1302ec78c680550 100644 (file)
@@ -74,6 +74,11 @@ jobs:
             ${{ matrix.build.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
         name: 'make'
 
index ffc884436529e5c5baaa6ededbfc89ce461585f3..9a584ff4cc22bd5ad941c811fe15d422cb44a199 100644 (file)
@@ -205,7 +205,7 @@ jobs:
       - name: 'curl_config.h'
         run: |
           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'
         if: contains(matrix.configure, '--with-secure-transport')
@@ -363,7 +363,7 @@ jobs:
       - name: 'curl_config.h'
         run: |
           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'
         if: contains(matrix.build.generate, '-DCURL_USE_SECTRANSP=ON')
@@ -643,7 +643,7 @@ jobs:
       - name: 'curl_config.h'
         run: |
           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 }}'
         run: make -C bld V=1 VERBOSE=1
index 4eab31c9bcbab6fddd2049a33d1f5f5489784f82..30037a575ec0117c8805507914c25f4d5696180c 100644 (file)
@@ -61,6 +61,8 @@ jobs:
               -DCURL_USE_OPENSSL=ON \
               -DCURL_BROTLI=ON -DCURL_USE_GSSAPI=ON \
               || { 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
             bld/src/curl --disable --version
             if [ '${{ matrix.arch }}' = 'x86_64' ]; then  # Slow on emulated CPU
@@ -97,6 +99,8 @@ jobs:
               -DCURL_USE_OPENSSL=ON \
               -DCURL_BROTLI=ON \
               || { 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
             bld/src/curl --disable --version
             if [ '${{ matrix.arch }}' = 'x86_64' ]; then  # Slow on emulated CPU
@@ -139,6 +143,8 @@ jobs:
               --with-openssl \
               --with-brotli --enable-ldap --enable-ldaps --with-libidn2 --with-libssh2 --with-nghttp2 --with-gssapi \
               --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
             src/curl --disable --version
             if [ '${{ matrix.arch }}' = 'x86_64' ]; then  # Slow on emulated CPU
@@ -168,6 +174,8 @@ jobs:
               -DCURL_USE_OPENSSL=ON \
               -DCURL_BROTLI=ON -DCURL_USE_GSSAPI=ON \
               || { 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
             bld/src/curl --disable --version
             if [ '${{ matrix.arch }}' = 'x86_64' ]; then  # Slow on emulated CPU
@@ -198,6 +206,8 @@ jobs:
               --prefix="${HOME}"/install \
               --with-openssl \
               --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
             src/curl --disable --version
             gmake -j3 -C tests
index 6a5b030364d234fbbda8de44c3fb8a68d2641b88..1798eefb1be66644592dabbbebe0ab4027c72dc4 100644 (file)
@@ -72,6 +72,11 @@ jobs:
             ${{ matrix.build.generate }}
         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
         name: 'cmake build'
 
index 4626a0bf82c8412bfa9de3f82e1004d18ea7734e..0410ca9ed03a4ddee99d55ac0c09d138c3d365cb 100644 (file)
@@ -94,11 +94,9 @@ jobs:
 
       - name: 'curl_config.h'
         if: ${{ matrix.build == 'automake' }}
-        run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
-
-      - name: 'curl_config.h (full)'
-        if: ${{ matrix.build == 'automake' }}
-        run: cat bld/lib/curl_config.h || true
+        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'
         if: ${{ matrix.build == 'automake' }}
@@ -144,11 +142,9 @@ jobs:
 
       - name: 'curl_config.h'
         if: ${{ matrix.build == 'cmake' }}
-        run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
-
-      - name: 'curl_config.h (full)'
-        if: ${{ matrix.build == 'cmake' }}
-        run: cat bld/lib/curl_config.h || true
+        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'
         if: ${{ matrix.build == 'cmake' }}
@@ -264,11 +260,9 @@ jobs:
 
       - name: 'curl_config.h'
         if: ${{ matrix.build == 'autotools' }}
-        run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
-
-      - name: 'curl_config.h (full)'
-        if: ${{ matrix.build == 'autotools' }}
-        run: cat bld/lib/curl_config.h || true
+        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'
         if: ${{ matrix.build == 'autotools' }}
@@ -354,11 +348,9 @@ jobs:
 
       - name: 'curl_config.h'
         if: ${{ matrix.build == 'cmake' }}
-        run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
-
-      - name: 'curl_config.h (full)'
-        if: ${{ matrix.build == 'cmake' }}
-        run: cat bld/lib/curl_config.h || true
+        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'
         if: ${{ matrix.build == 'cmake' }}
@@ -484,10 +476,9 @@ jobs:
         run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
 
       - name: 'curl_config.h'
-        run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
-
-      - name: 'curl_config.h (full)'
-        run: cat bld/lib/curl_config.h || true
+        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'
         timeout-minutes: 5
@@ -569,6 +560,12 @@ jobs:
         if: ${{ matrix.build == 'autotools' && !cancelled() }}
         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'
         if: ${{ matrix.build == 'autotools' }}
         run: make -C bld -j5
@@ -593,6 +590,12 @@ jobs:
         if: ${{ matrix.build == 'cmake' && !cancelled() }}
         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'
         if: ${{ matrix.build == 'cmake' }}
         run: cmake --build bld
@@ -763,10 +766,9 @@ jobs:
         run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
 
       - name: 'curl_config.h'
-        run: cat bld/lib/curl_config.h | grep -F '#define' | sort || true
-
-      - name: 'curl_config.h (full)'
-        run: cat bld/lib/curl_config.h || true
+        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'
         timeout-minutes: 5
index f9647f2817524f994e35886a7bd1d50abd935ce8..4b95e8e10dfdcaf884b665474bb42c8a80e56390 100644 (file)
@@ -62,6 +62,7 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then
     '-DCMAKE_INSTALL_PREFIX=C:/curl' \
     "-DCMAKE_BUILD_TYPE=${PRJ_CFG}" \
     '-DCURL_USE_LIBPSL=OFF'
+  echo 'curl_config.h'; grep -F '#define' _bld/lib/curl_config.h | sort || true
   # shellcheck disable=SC2086
   if ! cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-}; then
     if [ "${PRJ_GEN}" = 'Visual Studio 9 2008' ]; then