2323 with :
2424 # Clone the repo to a subdirectory, so we can initialize the Zephyr
2525 # workspace in the parent directory.
26- path : zephyr-workspace/nrfconnect-ci-app
26+ path : zephyr-workspace/open-earable-v2
2727
2828 - name : Cache/Install APT Packages
2929 uses : awalsh128/cache-apt-pkgs-action@latest
@@ -54,15 +54,15 @@ jobs:
5454 # Set up the Zephyr workspace and install the Python dependencies
5555 run : |
5656 cd zephyr-workspace
57- west init -l nrfconnect-ci-app
57+ west init -l open-earable-v2
5858 west update --narrow -o=--depth=1
5959 pip3 install -r zephyr/scripts/requirements.txt
6060
6161 - name : Register Custom Boards
6262 # Registers our custom boards in the Zephyr build system
6363 run : |
6464 mkdir -p $(pwd)/workflow-board-temp
65- cp -R $(pwd)/zephyr-workspace/nrfconnect-ci-app /boards $(pwd)/workflow-board-temp/boards
65+ cp -R $(pwd)/zephyr-workspace/open-earable-v2 /boards $(pwd)/workflow-board-temp/boards
6666
6767 # Merge teco dir (if it exists) to arm dir (assuming the boards are for arm)
6868 mkdir -p $(pwd)/workflow-board-temp/boards/arm # Create arm dir if not exist
7676 uses : actions/cache@v3
7777 with :
7878 path : ~/.cache/ccache
79- key : ccache-v1-${{ runner.os }}-${{ hashFiles('zephyr-workspace/nrfconnect-ci-app /west.yml') }}
79+ key : ccache-v1-${{ runner.os }}-${{ hashFiles('zephyr-workspace/open-earable-v2 /west.yml') }}
8080 restore-keys : |
8181 ccache-v1-${{ runner.os }}-
8282
@@ -89,27 +89,41 @@ jobs:
8989 # using VSCode + Nordic Plugins
9090 west build \
9191 --board openearable_v2/nrf5340/cpuapp \
92- --pristine=always nrfconnect-ci-app
92+ --pristine=always open-earable-v2 \
93+ -- -DFILE_SUFFIX="fota"
9394 # print detailed ccache statistics
9495 ccache -sv
9596
9697 - name : Check And Prepare Build Output
9798 run : |
9899 mkdir -p $(pwd)/workflow-board-temp/build-output
99100 cp $(pwd)/zephyr-workspace/build/ipc_radio/zephyr/zephyr.elf $(pwd)/workflow-board-temp/build-output/openearable_v2_firmware.elf
101+ cp $(pwd)/zephyr-workspace/build/dfu_application.zip $(pwd)/workflow-board-temp/build-output/openearable_v2_fota.zip
102+ (cd $(pwd)/workflow-board-temp/build-output && unzip openearable_v2_fota.zip -d openearable_v2_fota && rm openearable_v2_fota.zip)
100103 ls $(pwd)/workflow-board-temp/build-output/openearable_v2_firmware.elf
104+ echo ""
105+ echo "Fota dir:"
106+ ls $(pwd)/workflow-board-temp/build-output/openearable_v2_fota
101107
102- - name : Upload Build Artifact
108+ - name : Upload Build Artifact (Firmware)
103109 uses : actions/upload-artifact@v4
104- id : artifact-upload-step
110+ id : artifact-upload-step-1
105111 with :
106112 name : openearable_v2_firmware.elf
107113 path : workflow-board-temp/build-output/openearable_v2_firmware.elf
108114
115+ - name : Upload Build Artifact (FOTA build)
116+ uses : actions/upload-artifact@v4
117+ id : artifact-upload-step-2
118+ with :
119+ name : openearable_v2_fota.zip
120+ path : workflow-board-temp/build-output/openearable_v2_fota/
121+
109122 - name : PR Comment with File
110123 if : github.event_name == 'pull_request'
111124 uses : thollander/actions-comment-pull-request@v3
112125 with :
113126 message : |
114127 Build output available:
115- [openearable_v2_firmware.elf.zip](${{ steps.artifact-upload-step.outputs.artifact-url }})
128+ [openearable_v2_firmware.elf.zip](${{ steps.artifact-upload-step-1.outputs.artifact-url }})
129+ [openearable_v2_fota.zip](${{ steps.artifact-upload-step-2.outputs.artifact-url }})
0 commit comments