Skip to content

Commit 2c40caf

Browse files
author
Arthur Finkelmann
committed
added USB build to workflow
1 parent 51b1d22 commit 2c40caf

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.github/workflows/build-ot-nrf528xx.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build OpenThread nRF52840 Example
1+
name: Build OpenThread nRF52840 Examples
22

33
on:
44
push:
@@ -39,22 +39,38 @@ jobs:
3939
working-directory: ot-nrf528xx
4040
run: ./script/bootstrap
4141

42-
# Step 4: Build the example
42+
# Step 4: Build UART version
4343
- name: Build nRF52840 UART Example
4444
working-directory: ot-nrf528xx
4545
run: ./script/build nrf52840 UART_trans
4646

47-
# Step 5: Convert ELF to HEX
48-
- name: Convert ELF to HEX
47+
# Step 5: Rename UART ELF and HEX files
48+
- name: Rename UART binaries
4949
working-directory: ot-nrf528xx
50-
run: arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd build/bin/ot-cli-ftd.hex
50+
run: |
51+
mv build/bin/ot-cli-ftd build/bin/ot-cli-ftd-UART
52+
arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd-UART build/bin/ot-cli-ftd-UART.hex
53+
54+
# Step 6: Build USB version
55+
- name: Build nRF52840 USB Example
56+
working-directory: ot-nrf528xx
57+
run: ./script/build nrf52840 USB_trans -DOT_BOOTLOADER=USB
58+
59+
# Step 7: Rename USB ELF and HEX files
60+
- name: Rename USB binaries
61+
working-directory: ot-nrf528xx
62+
run: |
63+
mv build/bin/ot-cli-ftd build/bin/ot-cli-ftd-USB
64+
arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd-USB build/bin/ot-cli-ftd-USB.hex
5165
52-
# Step 6: Upload artifacts
66+
# Step 8: Upload artifacts
5367
- name: Upload binaries
5468
uses: actions/upload-artifact@v3
5569
with:
5670
name: ot-nrf528xx-binaries
5771
path: |
58-
ot-nrf528xx/build/bin/ot-cli-ftd
59-
ot-nrf528xx/build/bin/ot-cli-ftd.hex
72+
ot-nrf528xx/build/bin/ot-cli-ftd-UART
73+
ot-nrf528xx/build/bin/ot-cli-ftd-UART.hex
74+
ot-nrf528xx/build/bin/ot-cli-ftd-USB
75+
ot-nrf528xx/build/bin/ot-cli-ftd-USB.hex
6076

0 commit comments

Comments
 (0)