|
@@ -47,15 +47,29 @@ jobs:
|
|
|
--build-property "build.extra_flags=-DNRF52840_XXAA {build.flags.usb} -DCFG_TUD_HID=4" \
|
|
--build-property "build.extra_flags=-DNRF52840_XXAA {build.flags.usb} -DCFG_TUD_HID=4" \
|
|
|
OpenPuck
|
|
OpenPuck
|
|
|
|
|
|
|
|
- - name: Generate UF2
|
|
|
|
|
|
|
+ - name: Generate UF2 (OpenPuck)
|
|
|
# The Adafruit nRF52 core leaves its UF2 objcopy recipe commented out in
|
|
# The Adafruit nRF52 core leaves its UF2 objcopy recipe commented out in
|
|
|
# platform.txt, so arduino-cli only emits .hex/.zip. Convert the .hex to
|
|
# platform.txt, so arduino-cli only emits .hex/.zip. Convert the .hex to
|
|
|
# a drag-and-drop .uf2 ourselves.
|
|
# a drag-and-drop .uf2 ourselves.
|
|
|
run: ./gen_uf2.sh build/openpuck/OpenPuck.ino.hex build/openpuck/OpenPuck.ino.uf2
|
|
run: ./gen_uf2.sh build/openpuck/OpenPuck.ino.hex build/openpuck/OpenPuck.ino.uf2
|
|
|
|
|
|
|
|
|
|
+ - name: Compile ReversePuckFirmware
|
|
|
|
|
+ run: |
|
|
|
|
|
+ mkdir -p build/reversepuck build/cache/reversepuck
|
|
|
|
|
+ arduino-cli compile \
|
|
|
|
|
+ -b adafruit:nrf52:feather52840 \
|
|
|
|
|
+ --clean \
|
|
|
|
|
+ --build-path build/cache/reversepuck \
|
|
|
|
|
+ --output-dir build/reversepuck \
|
|
|
|
|
+ --build-property "build.extra_flags=-DNRF52840_XXAA {build.flags.usb}" \
|
|
|
|
|
+ ReversePuckFirmware
|
|
|
|
|
+
|
|
|
|
|
+ - name: Generate UF2 (ReversePuckFirmware)
|
|
|
|
|
+ run: ./gen_uf2.sh build/reversepuck/ReversePuckFirmware.ino.hex build/reversepuck/ReversePuckFirmware.ino.uf2
|
|
|
|
|
+
|
|
|
- name: List build outputs
|
|
- name: List build outputs
|
|
|
run: |
|
|
run: |
|
|
|
- find build/openpuck -maxdepth 1 -type f -print | sort
|
|
|
|
|
|
|
+ find build/openpuck build/reversepuck -maxdepth 1 -type f -print | sort
|
|
|
|
|
|
|
|
- name: Upload build artifacts
|
|
- name: Upload build artifacts
|
|
|
uses: actions/upload-artifact@v4
|
|
uses: actions/upload-artifact@v4
|
|
@@ -69,3 +83,9 @@ jobs:
|
|
|
build/openpuck/*.elf
|
|
build/openpuck/*.elf
|
|
|
build/openpuck/*.map
|
|
build/openpuck/*.map
|
|
|
build/openpuck/*.zip
|
|
build/openpuck/*.zip
|
|
|
|
|
+ build/reversepuck/*.uf2
|
|
|
|
|
+ build/reversepuck/*.bin
|
|
|
|
|
+ build/reversepuck/*.hex
|
|
|
|
|
+ build/reversepuck/*.elf
|
|
|
|
|
+ build/reversepuck/*.map
|
|
|
|
|
+ build/reversepuck/*.zip
|