Skip to content

Commit 368daf9

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

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

.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

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ include_directories(
2525
)
2626

2727
if (BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
28+
enable_testing()
2829
add_subdirectory(test)
2930
endif()

0 commit comments

Comments
 (0)