Skip to content

Commit df39841

Browse files
committed
ci: upload log on failure rather than print
this is so much easier to read
1 parent 18bba73 commit df39841

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,9 @@ jobs:
146146
env:
147147
CMAKE_GENERATOR: "MinGW Makefiles"
148148

149-
- run: cat build/CMakeFiles/CMakeConfigureLog.yaml
150-
if: ${{ failure() }}
149+
- name: upload CMakeConfigureLog.yaml
150+
if: failure() && hashFiles('build/CMakeFiles/CMakeConfigureLog.yaml') != ''
151+
uses: actions/upload-artifact@v4
152+
with:
153+
name: ${{ runner.os }}-CMakeConfigureLog.yaml
154+
path: build/CMakeFiles/CMakeConfigureLog.yaml

.github/workflows/composite-unix/action.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ runs:
2323
- run: cmake --workflow --preset release
2424
shell: bash
2525

26-
- run: cat build/CMakeFiles/CMakeConfigureLog.yaml
27-
if: ${{ failure() }}
28-
shell: bash
26+
- name: upload CMakeConfigureLog.yaml
27+
if: failure() && hashFiles('build/CMakeFiles/CMakeConfigureLog.yaml') != ''
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: ${{ runner.os }}-${{ env.CC }}-CMakeConfigureLog.yaml
31+
path: build/CMakeFiles/CMakeConfigureLog.yaml

0 commit comments

Comments
 (0)