summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-03-29 15:55:31 +1100
committerGitHub <noreply@github.com>2023-03-29 15:55:31 +1100
commit6bdbf77238166e25eb0888c85ad07f0b7dbf16bc (patch)
tree56533eb326b78411bf3b56621d5e9feb9f1702dd /.github/workflows
parente2630f9b407fb27fab9b2d3e78849611ecb7bdfb (diff)
Add step summary output to CI builds, with failure logs. (#20288)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci_builds.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/ci_builds.yml b/.github/workflows/ci_builds.yml
index 4dd4aec46a..92659f304d 100644
--- a/.github/workflows/ci_builds.yml
+++ b/.github/workflows/ci_builds.yml
@@ -39,7 +39,11 @@ jobs:
- name: Run `qmk mass-compile` (keymap ${{ matrix.keymap }})
run: |
export NCPUS=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
- qmk mass-compile -t -j $NCPUS -km ${{ matrix.keymap }}
+ qmk mass-compile -t -j $NCPUS -km ${{ matrix.keymap }} -e DUMP_CI_METADATA=yes
+ # Generate the step summary markdown
+ ./util/ci/generate_failure_markdown.sh > $GITHUB_STEP_SUMMARY
+ # Truncate to a maximum of 1MB to deal with GitHub workflow limit
+ truncate --size='<960K' $GITHUB_STEP_SUMMARY
- name: 'Upload artifacts'
uses: actions/upload-artifact@v3