]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI: dump non-pre-fill configure log on pre-fill check fail
authorViktor Szakats <commit@vsz.me>
Mon, 17 Feb 2025 13:48:03 +0000 (14:48 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 17 Feb 2025 15:59:56 +0000 (16:59 +0100)
To help debugging builds where the actual feature check is broken.

Follow-up to e7adf3e83747c2915c671f2e560cde6f3d4a4905 #15841
Closes #16369

.github/workflows/macos.yml
.github/workflows/windows.yml
appveyor.sh

index f53ce7d04b4f8becb09991b151ffafdd0bf79bd8..917e984a756045705e63b7d9cecf8da27a4aa3c4 100644 (file)
@@ -239,8 +239,9 @@ jobs:
                 -DCMAKE_C_COMPILER_TARGET="$(uname -m | sed 's/arm64/aarch64/')-apple-darwin$(uname -r)" \
                 ${{ matrix.build.generate }} ${options}
             done
-            if [ -d bld_chkprefill ]; then
-              diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h
+            if [ -d bld_chkprefill ] && ! diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h; then
+              echo '::group::reference configure log'; cat bld_chkprefill/CMakeFiles/CMake*.yaml 2>/dev/null || true; echo '::endgroup::'
+              false
             fi
           else
             export CFLAGS
index d3fdec9195314470a52c513b2cac173b4f56d24d..4008282158d8e8c0b5d526b9c002c9d2e13a77f1 100644 (file)
@@ -260,8 +260,9 @@ jobs:
                 -DCURL_WERROR=ON \
                 ${{ matrix.config }}
             done
-            if [ -d bld_chkprefill ]; then
-              diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h
+            if [ -d bld_chkprefill ] && ! diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h; then
+              echo '::group::reference configure log'; cat bld_chkprefill/CMakeFiles/CMake*.yaml 2>/dev/null || true; echo '::endgroup::'
+              false
             fi
           else
             export CFLAGS CPPFLAGS
@@ -756,8 +757,9 @@ jobs:
               -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE= \
               ${{ matrix.config }}
           done
-          if [ -d bld_chkprefill ]; then
-            diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h
+          if [ -d bld_chkprefill ] && ! diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h; then
+            echo '::group::reference configure log'; cat bld_chkprefill/CMakeFiles/CMake*.yaml 2>/dev/null || true; echo '::endgroup::'
+            false
           fi
 
       - name: 'configure log'
index 021bf494b251e0b8ea32b1842b00027801750ca6..a8db45db8c8c96d17d0e918a9654b9e99168f013 100644 (file)
@@ -70,8 +70,9 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then
       -DCMAKE_BUILD_TYPE="${PRJ_CFG}" \
       -DCURL_USE_LIBPSL=OFF ${options}
   done
-  if [ -d _bld_chkprefill ]; then
-    diff -u _bld/lib/curl_config.h _bld_chkprefill/lib/curl_config.h
+  if [ -d _bld_chkprefill ] && ! diff -u _bld/lib/curl_config.h _bld_chkprefill/lib/curl_config.h; then
+    cat _bld_chkprefill/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
+    false
   fi
   if false; then
     cat _bld/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true