aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorJoel Spadin <[email protected]>2023-10-13 14:58:27 -0500
committerPete Johanson <[email protected]>2023-10-17 15:35:44 -0700
commit3b1d04372b0a013ec2738019166c1c2e85bf0ba7 (patch)
tree3df0958cc07c0104d7faf7f2d05a7050fcc70e40 /.github
parenta9a53e6da490e319bae5efa85c221010a2578b15 (diff)
downloadzmk-3b1d04372b0a013ec2738019166c1c2e85bf0ba7.tar.gz
zmk-3b1d04372b0a013ec2738019166c1c2e85bf0ba7.zip
feat: Print Kconfig and DTS for failed builds
Added the combined devicetree file to the user config build action. Set it and the Kconfig output to run even on a failed build.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-user-config.yml22
1 files changed, 21 insertions, 1 deletions
diff --git a/.github/workflows/build-user-config.yml b/.github/workflows/build-user-config.yml
index 5891ddc1e2..c1a97b4d6e 100644
--- a/.github/workflows/build-user-config.yml
+++ b/.github/workflows/build-user-config.yml
@@ -97,7 +97,27 @@ jobs:
run: west build -s zmk/app -b "${{ matrix.board }}" -- -DZMK_CONFIG="${GITHUB_WORKSPACE}/${{ inputs.config_path }}" ${{ env.extra_cmake_args }} ${{ matrix.cmake-args }}
- name: ${{ env.display_name }} Kconfig file
- run: grep -v -e "^#" -e "^$" build/zephyr/.config | sort
+ run: |
+ if [ -f build/zephyr/.config ]
+ then
+ grep -v -e "^#" -e "^$" build/zephyr/.config | sort
+ else
+ echo "No Kconfig output"
+ fi
+ if: ${{ !cancelled() }}
+
+ - name: ${{ env.display_name }} Devicetree file
+ run: |
+ if [ -f build/zephyr/zephyr.dts ]
+ then
+ cat build/zephyr/zephyr.dts
+ elif [ -f build/zephyr/zephyr.dts.pre ]
+ then
+ cat -s build/zephyr/zephyr.dts.pre
+ else
+ echo "No Devicetree output"
+ fi
+ if: ${{ !cancelled() }}
- name: Rename artifacts
shell: sh -x {0}