Skip to content

Commit 7493f3a

Browse files
committed
ci: upload rather than print log
1 parent ed8bc17 commit 7493f3a

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
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/composite-build/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ runs:
1414
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
1515
-DCMAKE_CXX_STANDARD=${{ matrix.cpp-std }}
1616
17-
- name: log if fail
18-
shell: bash
17+
- name: Upload log failure
1918
if: failure()
20-
run: cat build/CMakeFiles/CMakeConfigureLog.yaml
19+
uses: actions/upload-artifact@v4
20+
with:
21+
name: cpp-${{ matrix.cpp-std }}-${{ matrix.cpp }}-shared-${{ matrix.shared }}-${{ runner.os }}-CMakeConfigureLog.yaml
22+
path: build/CMakeFiles/CMakeConfigureLog.yaml
2123

2224
- name: Debug workflow
2325
shell: bash

.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)