|
|
@@ -59,6 +59,21 @@ jobs:
|
|
|
--build-property "build.extra_flags=-DNRF52840_XXAA {build.flags.usb} -DCFG_TUD_HID=4 -DOPK_FACTORY_RESET=1" \
|
|
|
OpenPuck
|
|
|
|
|
|
+ - name: Generate UF2 images
|
|
|
+ run: |
|
|
|
+ CORE_DIR="$(find "${HOME}/.arduino15/packages/adafruit/hardware/nrf52" \
|
|
|
+ -mindepth 1 -maxdepth 1 -type d | sort -V | tail -n 1)"
|
|
|
+ UF2CONV="${CORE_DIR}/tools/uf2conv/uf2conv.py"
|
|
|
+ test -f "${UF2CONV}"
|
|
|
+ test -f build/openpuck/OpenPuck.ino.hex
|
|
|
+ test -f build/openpuck-recovery/OpenPuck.ino.hex
|
|
|
+ python3 "${UF2CONV}" -f 0xADA52840 -c \
|
|
|
+ -o build/openpuck/OpenPuck.ino.uf2 \
|
|
|
+ build/openpuck/OpenPuck.ino.hex
|
|
|
+ python3 "${UF2CONV}" -f 0xADA52840 -c \
|
|
|
+ -o build/openpuck-recovery/OpenPuck.ino.uf2 \
|
|
|
+ build/openpuck-recovery/OpenPuck.ino.hex
|
|
|
+
|
|
|
- name: Collect artifacts
|
|
|
run: |
|
|
|
mkdir -p release_assets
|