File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ jobs:
1313 - name : Checkout Code
1414 uses : actions/checkout@v4
1515
16- - name : Install PlatformIO
16+ - name : Install PlatformIO & Tools
1717 run : |
1818 python -m pip install --upgrade pip
1919 pip install platformio
2020 pip install adafruit-nrfutil
21+ curl -L https://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2conv.py -o uf2conv.py
22+ chmod +x uf2conv.py
2123
2224 - name : Build Firmware
2325 run : |
@@ -28,14 +30,17 @@ jobs:
2830 mkdir firmware_output
2931 cp .pio/build/oeplnrf/firmware.hex firmware_output/production.hex
3032
31- - name : Rename Files with Release Tag
33+ - name : Rename & Package
3234 run : |
3335 TAG_NAME=${{ github.event.release.tag_name }}
3436 adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application firmware_output/production.hex firmware_output/dfu.zip
3537 mv firmware_output/production.hex firmware_output/production-${TAG_NAME}.hex
3638 mv firmware_output/dfu.zip firmware_output/dfu-${TAG_NAME}.zip
39+ python uf2conv.py firmware_output/production-${TAG_NAME}.hex \
40+ --family 0xADA52840 \
41+ --output firmware_output/production-${TAG_NAME}.uf2
3742
38- - name : Add files to release
43+ - name : Upload Release Assets
3944 uses : svenstaro/upload-release-action@v2
4045 with :
4146 repo_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments