Skip to content

Commit aa642fe

Browse files
committed
fix(ci): correct log upload and summary indentation in path cross-platform workflow
1 parent 30d9bde commit aa642fe

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

‎.github/workflows/path-cross-platform-ci.yml‎

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -260,20 +260,28 @@ jobs:
260260
cmake --build smoke/build --config ${{ matrix.build_type }} --parallel $env:BUILD_JOBS
261261
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
262262
263-
- name: Upload logs on failure
263+
- name: Collect logs
264+
if: failure()
265+
shell: bash
266+
run: |
267+
mkdir -p logs
268+
269+
cp -f build/CMakeCache.txt logs/ 2>/dev/null || true
270+
cp -f build/CMakeFiles/CMakeOutput.log logs/ 2>/dev/null || true
271+
cp -f build/CMakeFiles/CMakeError.log logs/ 2>/dev/null || true
272+
cp -f build/CMakeFiles/CMakeConfigureLog.yaml logs/ 2>/dev/null || true
273+
274+
cp -f ../error/build/CMakeCache.txt logs/error_CMakeCache.txt 2>/dev/null || true
275+
cp -f ../error/build/CMakeFiles/CMakeOutput.log logs/error_CMakeOutput.log 2>/dev/null || true
276+
cp -f ../error/build/CMakeFiles/CMakeError.log logs/error_CMakeError.log 2>/dev/null || true
277+
cp -f ../error/build/CMakeFiles/CMakeConfigureLog.yaml logs/error_CMakeConfigureLog.yaml 2>/dev/null || true
278+
279+
- name: Upload logs
264280
if: failure()
265281
uses: actions/upload-artifact@v4
266282
with:
267283
name: path-logs-${{ matrix.os }}-${{ matrix.build_type }}
268-
path: |
269-
build/CMakeCache.txt
270-
build/CMakeFiles/CMakeOutput.log
271-
build/CMakeFiles/CMakeError.log
272-
build/CMakeFiles/CMakeConfigureLog.yaml
273-
../error/build/CMakeCache.txt
274-
../error/build/CMakeFiles/CMakeOutput.log
275-
../error/build/CMakeFiles/CMakeError.log
276-
../error/build/CMakeFiles/CMakeConfigureLog.yaml
284+
path: logs/*
277285
if-no-files-found: warn
278286

279287
summary:

0 commit comments

Comments
 (0)