Skip to content

Commit 22c62cb

Browse files
committed
dump vcpkg logs on failure
1 parent 6cde99f commit 22c62cb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/windows-cmake.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,17 @@ jobs:
328328
env:
329329
STEPS_PY311_OUTPUTS_PYTHON_PATH: ${{ steps.py311.outputs.python-path }}
330330
STEPS_DYNAMIC_OUTPUTS_FEATURES: ${{ steps.dynamic.outputs.features }}
331+
- name: Dump vcpkg buildtrees logs on failure
332+
if: failure()
333+
shell: bash
334+
run: |
335+
if [[ -d "${TEMP}/.build/vcpkg/buildtrees" ]]; then
336+
find "${TEMP}/.build/vcpkg/buildtrees" -name "*.log" -type f -print0 | while IFS= read -r -d '' log; do
337+
echo "========= Contents of ${log} ========="
338+
cat "${log}" || true
339+
echo "========= End of ${log} ========="
340+
done
341+
fi
331342
- name: Post Build Disk Space
332343
shell: bash
333344
run: df -m

0 commit comments

Comments
 (0)