Skip to content

Commit 10a7a17

Browse files
committed
ci: upload rather than print log
1 parent ed8bc17 commit 10a7a17

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/ci_windows.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,12 @@ jobs:
9393
cmake --preset multi
9494
-Dffilesystem_cpp:BOOL=${{ matrix.cpp }}
9595
96-
- name: print config log
97-
if: ${{ failure() }}
98-
run: cat build/CMakeFiles/CMakeConfigureLog.yaml
96+
- name: Upload log failure
97+
if: failure()
98+
uses: actions/upload-artifact@v4
99+
with:
100+
name: cpp-${{ matrix.cpp-std }}-${{ matrix.cpp }}-shared-${{ matrix.shared }}-${{ runner.os }}-CMakeConfigureLog.yaml
101+
path: build/CMakeFiles/CMakeConfigureLog.yaml
99102

100103
- name: Debug workflow
101104
run: cmake --workflow debug

.github/workflows/oneapi-linux.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,12 @@ jobs:
6464
cmake --preset default
6565
-Dffilesystem_cpp:BOOL=${{ matrix.cpp }}
6666
67-
- name: print config log
68-
if: ${{ failure() }}
69-
run: cat build/CMakeFiles/CMakeConfigureLog.yaml
67+
- name: Upload log failure
68+
if: failure()
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: ${{ env.CXX }}-cpp-${{ matrix.cpp }}-${{ runner.os }}-CMakeConfigureLog.yaml
72+
path: build/CMakeFiles/CMakeConfigureLog.yaml
7073

7174
- name: Release workflow
7275
run: cmake --workflow default

0 commit comments

Comments
 (0)