summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci_builds.yml8
-rwxr-xr-xutil/ci/generate_failure_markdown.sh2
2 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/ci_builds.yml b/.github/workflows/ci_builds.yml
index ef792dcbaf..b5e5bcb4fd 100644
--- a/.github/workflows/ci_builds.yml
+++ b/.github/workflows/ci_builds.yml
@@ -39,11 +39,13 @@ jobs:
39 - name: Run `qmk mass-compile` (keymap ${{ matrix.keymap }}) 39 - name: Run `qmk mass-compile` (keymap ${{ matrix.keymap }})
40 run: | 40 run: |
41 export NCPUS=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) 41 export NCPUS=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
42 qmk mass-compile -t -j $NCPUS -km ${{ matrix.keymap }} -e DUMP_CI_METADATA=yes 42 qmk mass-compile -t -j $NCPUS -km ${{ matrix.keymap }} -e DUMP_CI_METADATA=yes || touch .failed
43 # Generate the step summary markdown 43 # Generate the step summary markdown
44 ./util/ci/generate_failure_markdown.sh > $GITHUB_STEP_SUMMARY 44 ./util/ci/generate_failure_markdown.sh > $GITHUB_STEP_SUMMARY || true
45 # Truncate to a maximum of 1MB to deal with GitHub workflow limit 45 # Truncate to a maximum of 1MB to deal with GitHub workflow limit
46 truncate --size='<960K' $GITHUB_STEP_SUMMARY 46 truncate --size='<960K' $GITHUB_STEP_SUMMARY || true
47 # Exit with failure if the compilation stage failed
48 [ ! -f .failed ] || exit 1
47 49
48 - name: 'Upload artifacts' 50 - name: 'Upload artifacts'
49 uses: actions/upload-artifact@v3 51 uses: actions/upload-artifact@v3
diff --git a/util/ci/generate_failure_markdown.sh b/util/ci/generate_failure_markdown.sh
index 5f21f06856..ccb3eacb35 100755
--- a/util/ci/generate_failure_markdown.sh
+++ b/util/ci/generate_failure_markdown.sh
@@ -19,3 +19,5 @@ dump_failure_info() {
19for failure_file in $(find "$qmk_firmware_dir/.build" -name 'failed.log.*' | sort); do 19for failure_file in $(find "$qmk_firmware_dir/.build" -name 'failed.log.*' | sort); do
20 dump_failure_info "$failure_file" 20 dump_failure_info "$failure_file"
21done 21done
22
23exit 0