Skip to content

Commit 856cb72

Browse files
committed
artifacts
1 parent 32831d3 commit 856cb72

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,20 @@ jobs:
5151
LABEL: ${{ matrix.label }}
5252
run: ctest -S ODCTest.cmake -VV --output-on-failure ${{ matrix.extra }}
5353

54+
- name: Collect logs on failure
55+
if: failure()
56+
run: |
57+
mkdir -p build/logs
58+
cp -r ~/.ODC/ build/logs/ODC 2>/dev/null || true
59+
cp -r ~/.DDS/ build/logs/DDS 2>/dev/null || true
60+
5461
- name: Upload logs on failure
5562
if: failure()
5663
uses: actions/upload-artifact@v4
5764
with:
5865
name: logs-${{ matrix.label }}
5966
path: |
60-
~/.ODC/
61-
~/.DDS/
67+
build/logs/
6268
build/tmp/
6369
if-no-files-found: ignore
6470
retention-days: 7

0 commit comments

Comments
 (0)