Zigbee ota updates #236
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: firmware build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Check code format | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Check clang-format | |
uses: jidicula/[email protected] | |
with: | |
check-path: "code/nrf-connect" | |
exclude-regex: '\/build\/' | |
build-blinky: | |
runs-on: ubuntu-latest | |
name: Build blinky | |
needs: | |
- lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build blinky | |
uses: ./.github/actions/build | |
with: | |
sample-dir: code/nrf-connect/samples/blinky | |
board: bparasite_nrf52840 | |
revision: 2.0.0 | |
output-bin: blinky_nrf52840.hex | |
build-input: | |
runs-on: ubuntu-latest | |
name: Build input | |
needs: | |
- lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build input | |
uses: ./.github/actions/build | |
with: | |
sample-dir: code/nrf-connect/samples/input | |
board: bparasite_nrf52840 | |
revision: 2.0.0 | |
output-bin: input_nrf52840.hex | |
build-soil-read-loop: | |
runs-on: ubuntu-latest | |
name: Build soil_read_loop | |
needs: | |
- lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build soil_read_loop | |
uses: ./.github/actions/build | |
with: | |
sample-dir: code/nrf-connect/samples/soil_read_loop | |
board: bparasite_nrf52840 | |
revision: 2.0.0 | |
output-bin: soil_read_loop_nrf52840.hex | |
build-ble: | |
strategy: | |
matrix: | |
soc: [nrf52840, nrf52833] | |
revision: [1.1.0, 1.2.0, 2.0.0] | |
runs-on: ubuntu-latest | |
name: Build ble ${{ matrix.soc }}@${{ matrix.revision }} | |
needs: | |
- lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: ./.github/actions/build | |
with: | |
sample-dir: code/nrf-connect/samples/ble | |
board: bparasite_${{ matrix.soc }} | |
revision: ${{ matrix.revision }} | |
cmake-extra: -DCONFIG_PRST_BLE_ENCODING_BTHOME_V2=y -DCONFIG_PRST_SLEEP_DURATION_SEC=1 -DCONFIG_PRSTLIB_LOG_LEVEL_DBG=y | |
output-bin: ble_${{ matrix.soc }}_${{ matrix.revision }}_debug.hex | |
build-zigbee: | |
strategy: | |
matrix: | |
soc: [nrf52840, nrf52833] | |
revision: [1.2.0, 2.0.0] | |
runs-on: ubuntu-latest | |
name: Build zigbee ${{ matrix.soc }}@${{ matrix.revision }} | |
needs: | |
- lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: ./.github/actions/build | |
with: | |
sample-dir: code/nrf-connect/samples/zigbee | |
board: bparasite_${{ matrix.soc }} | |
revision: ${{ matrix.revision }} | |
cmake-extra: -DCONFIG_PRSTLIB_LOG_LEVEL_DBG=y | |
output-bin: zigbee_${{ matrix.soc }}_${{ matrix.revision }}_debug.hex |