From 213115bd7ea88d541bacb76211178d02202521f9 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 5 Apr 2025 20:23:17 +0200 Subject: [PATCH] GHA/configure-vs-cmake: dump generated configs to log Sometimes it's useful to have a look at the generated `libcurl.pc` and `curl-config` files. `cmp-config.pl` normalizes them before diffing, thus doesn't show their original content. Closes #16981 --- .github/workflows/configure-vs-cmake.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/configure-vs-cmake.yml b/.github/workflows/configure-vs-cmake.yml index 7130c7e6d4..5e5a52611d 100644 --- a/.github/workflows/configure-vs-cmake.yml +++ b/.github/workflows/configure-vs-cmake.yml @@ -56,6 +56,13 @@ jobs: - name: 'cmake log' run: cat bld-cm/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true + - name: 'dump generated files' + run: | + for f in libcurl.pc curl-config; do + echo "::group::AM ${f}"; cat bld-am/"${f}" | grep -v '^#' || true; echo '::endgroup::' + echo "::group::CM ${f}"; cat bld-cm/"${f}" | grep -v '^#' || true; echo '::endgroup::' + done + - name: 'compare generated curl_config.h files' run: ./.github/scripts/cmp-config.pl bld-am/lib/curl_config.h bld-cm/lib/curl_config.h @@ -99,6 +106,13 @@ jobs: - name: 'cmake log' run: cat bld-cm/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true + - name: 'dump generated files' + run: | + for f in libcurl.pc curl-config; do + echo "::group::AM ${f}"; cat bld-am/"${f}" | grep -v '^#' || true; echo '::endgroup::' + echo "::group::CM ${f}"; cat bld-cm/"${f}" | grep -v '^#' || true; echo '::endgroup::' + done + - name: 'compare generated curl_config.h files' run: ./.github/scripts/cmp-config.pl bld-am/lib/curl_config.h bld-cm/lib/curl_config.h @@ -139,6 +153,13 @@ jobs: - name: 'cmake log' run: cat bld-cm/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true + - name: 'dump generated files' + run: | + for f in libcurl.pc curl-config; do + echo "::group::AM ${f}"; cat bld-am/"${f}" | grep -v '^#' || true; echo '::endgroup::' + echo "::group::CM ${f}"; cat bld-cm/"${f}" | grep -v '^#' || true; echo '::endgroup::' + done + - name: 'compare generated curl_config.h files' run: ./.github/scripts/cmp-config.pl bld-am/lib/curl_config.h bld-cm/lib/curl_config.h -- 2.47.2