Skip to content

Commit ab9ea41

Browse files
committed
chore: Upload error logs on failed builds
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 055ad2d commit ab9ea41

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

.github/workflows/macos.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,10 @@ jobs:
5656
working-directory: build
5757
run: |
5858
ctest -VV
59+
60+
- name: Upload error logs
61+
if: ${{ failure() || cancelled() }}
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: ${{ matrix.os }}-logs
65+
path: ./**/*.log

.github/workflows/ubuntu.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ jobs:
5757
ctest -VV
5858
5959
- name: Upload coverage reports to Codecov
60-
uses: codecov/codecov-action@v4.0.1
60+
uses: codecov/codecov-action@v5.4.0
6161
with:
6262
token: ${{ secrets.CODECOV_TOKEN }}
63-
63+
64+
- name: Upload error logs
65+
if: ${{ failure() || cancelled() }}
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: ${{ matrix.os }}-logs
69+
path: ./**/*.log

.github/workflows/windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ jobs:
4747
working-directory: build
4848
run: |
4949
ctest -C Debug -VV
50+
51+
- name: Upload error logs
52+
if: ${{ failure() || cancelled() }}
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: ${{ matrix.os }}-logs
56+
path: ./**/*.log

0 commit comments

Comments
 (0)