[neard][PATCH v2 10/11] ci: print configure logs on failures

Krzysztof Kozlowski <[email protected]>
Newsgroups dev.linux.lists.oe-linux-nfc,org.01.lists.linux-nfc
Message-ID <[email protected]>
Helps debugging of container-specific configure failures.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
 .github/workflows/ci.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b6f29cf9ddfb..d4ddcdd3f8f4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -265,6 +265,7 @@ jobs:
         printenv
 
     - name: Configure
+      id: configure
       run: |
         echo "Bootstraping in mode: $MODE"
         CONFIGURE_ARGS=""
@@ -287,6 +288,11 @@ jobs:
             $CONFIGURE_ARGS
         fi
 
+    - name: Get configure logs
+      run: cat config.log
+      if: ${{ always() && ((steps.configure.outcome == 'failure') ||
+                           (steps.configure.outcome == 'success')) }}
+
     - name: Compile
       run: make -j$(nproc)
 
-- 
2.30.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.