File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 with :
6060 fetch-depth : 0
6161
62- - name : Configure and build dtkdeclarative
62+ - name : Configure dtkdeclarative
6363 run : |
64- set -o pipefail
6564 cmake -B build \
6665 -GNinja \
6766 -DCMAKE_INSTALL_PREFIX=/usr \
@@ -73,18 +72,32 @@ jobs:
7372 -DBUILD_EXAMPLES=OFF \
7473 -DBUILD_TESTING=OFF \
7574 -DDTK5=${{ matrix.dtk5 }} 2>&1 | tee /tmp/cmake-configure.log
75+ echo "✅ Configure done"
76+
77+ - name : Print configure log on failure
78+ if : failure()
79+ run : |
80+ echo "=== cmake-configure.log (last 80 lines) ==="
81+ tail -80 /tmp/cmake-configure.log 2>/dev/null || echo "(not found)"
82+ tail -20 /tmp/cmake-configure.log 2>/dev/null | while IFS= read -r line; do
83+ echo "::error::$line"
84+ done
85+
86+ - name : Build dtkdeclarative
87+ run : |
7688 cmake --build build -j$(nproc) 2>&1 | tee /tmp/cmake-build.log
7789 echo "✅ dtkdeclarative Qt${{ matrix.qt_version }} built successfully!"
7890 echo "=== Built files ==="
7991 find build -name "*.so" -o -name "*.a" | head -20
8092
81- - name : Print build logs on failure
93+ - name : Print build log on failure
8294 if : failure()
8395 run : |
84- echo "=== cmake-configure.log ==="
85- cat /tmp/cmake-configure.log 2>/dev/null || echo "(not found)"
8696 echo "=== cmake-build.log (last 100 lines) ==="
8797 tail -100 /tmp/cmake-build.log 2>/dev/null || echo "(not found)"
98+ grep -E "error:|Error:|FAILED" /tmp/cmake-build.log 2>/dev/null | head -20 | while IFS= read -r line; do
99+ echo "::error::$line"
100+ done
88101
89102 - name : Install dtkdeclarative to staging directory
90103 run : |
You can’t perform that action at this time.
0 commit comments