summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2022-10-10 18:39:14 -0700
committerMark Adler <fork@madler.net>2022-10-11 20:21:50 -0700
commit594e8e8f62f1db357c45613fb82d16fb572d5ec6 (patch)
tree9c93141bed03427ab3b02f48b4c76bb2ea03f758
parent462986f38e14ff8d9715500d37c5f6400420bb5c (diff)
downloadzlib-594e8e8f62f1db357c45613fb82d16fb572d5ec6.tar.gz
CI: Upload build errors on failure.
-rw-r--r--.github/workflows/cmake.yml10
-rw-r--r--.github/workflows/configure.yml9
2 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 5113952..9100c67 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -61,3 +61,13 @@ jobs:
- name: Run test cases
run: ctest -C Release --output-on-failure --max-width 120
working-directory: ${{ matrix.build-dir || '.' }}
+
+ - name: Upload build errors
+ uses: actions/upload-artifact@v3
+ if: failure()
+ with:
+ name: ${{ matrix.name }} (cmake)
+ path: |
+ **/CMakeFiles/CMakeOutput.log
+ **/CMakeFiles/CMakeError.log
+ retention-days: 7
diff --git a/.github/workflows/configure.yml b/.github/workflows/configure.yml
index 09f67b4..da311a8 100644
--- a/.github/workflows/configure.yml
+++ b/.github/workflows/configure.yml
@@ -45,3 +45,12 @@ jobs:
- name: Run test cases
run: make test
working-directory: ${{ matrix.build-dir }}
+
+ - name: Upload build errors
+ uses: actions/upload-artifact@v3
+ if: failure()
+ with:
+ name: ${{ matrix.name }} (configure)
+ path: |
+ ${{ matrix.build-dir || '.' }}/configure.log
+ retention-days: 7