Add step to workflow to convert to uf2 for seeeduino_xiao

This commit is contained in:
Manna Harbour 2022-01-13 20:29:43 +11:00
parent 6604c1410a
commit ed64a853f3

View File

@ -171,6 +171,15 @@ jobs:
then
cat -n "$dts"
fi
- name: Convert seeeduino_xiao bin to uf2
if: ${{ matrix.board == 'seeeduino_xiao' }}
run: |
bin='build/zephyr/zmk.bin'
uf2='build/zephyr/zmk.uf2'
if [ -f "$bin" -a ! -f "$uf2" ]
then
python3 ./tools/uf2/utils/uf2conv.py -c -f SAMD21 -o "$uf2" "$bin"
fi
- name: Prepare firmware artifacts
run: |
for extension in "hex" "uf2"