Skip to content

Merge pull request #218 from rbaron/2.7 #260

Merge pull request #218 from rbaron/2.7

Merge pull request #218 from rbaron/2.7 #260

Workflow file for this run

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/clang-format-action@v4.9.0
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
soc: 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
soc: 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
soc: 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
soc: ${{ matrix.soc }}
revision: ${{ matrix.revision }}
cmake-extra: -DCONFIG_PRST_BLE_ENCODING_BTHOME_V2=y -DCONFIG_PRST_SLEEP_DURATION_MSEC=1000 -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
soc: ${{ matrix.soc }}
revision: ${{ matrix.revision }}
cmake-extra: -DCONFIG_PRSTLIB_LOG_LEVEL_DBG=y
output-bin: zigbee_${{ matrix.soc }}_${{ matrix.revision }}_debug.hex