|
1 | | -name: Build OpenThread nRF52840 Example |
| 1 | +name: Build OpenThread nRF52840 Examples |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
@@ -39,22 +39,38 @@ jobs: |
39 | 39 | working-directory: ot-nrf528xx |
40 | 40 | run: ./script/bootstrap |
41 | 41 |
|
42 | | - # Step 4: Build the example |
| 42 | + # Step 4: Build UART version |
43 | 43 | - name: Build nRF52840 UART Example |
44 | 44 | working-directory: ot-nrf528xx |
45 | 45 | run: ./script/build nrf52840 UART_trans |
46 | 46 |
|
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 |
49 | 49 | 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 |
51 | 65 |
|
52 | | - # Step 6: Upload artifacts |
| 66 | + # Step 8: Upload artifacts |
53 | 67 | - name: Upload binaries |
54 | 68 | uses: actions/upload-artifact@v3 |
55 | 69 | with: |
56 | 70 | name: ot-nrf528xx-binaries |
57 | 71 | 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 |
60 | 76 |
|
0 commit comments