Updates GitHub actions to build for different board revisions

This commit is contained in:
rbaron 2022-12-03 14:11:22 +01:00
parent 8bfd75de78
commit cc62786d16
2 changed files with 34 additions and 13 deletions

View file

@ -7,6 +7,9 @@ inputs:
board:
description: 'Board definition to use'
required: true
revision:
description: 'Board revision use'
default: '1.2.0'
cmake-extra:
description: 'Extra CMake arguments'
default: ''
@ -21,6 +24,7 @@ runs:
with:
sample-dir: ${{ inputs.sample-dir }}
board: ${{ inputs.board }}
revision: ${{ inputs.revision }}
cmake-extra: ${{ inputs.cmake-extra }}
output-bin: ${{ inputs.output-bin }}
- uses: actions/upload-artifact@v3

View file

@ -29,29 +29,46 @@ jobs:
sample-dir: code/nrf-connect/samples/soil_read_loop
board: bparasite_nrf52840
output-bin: soil_read_loop_nrf52840.hex
- name: Build ble_nrf52840_default.hex
- name: Build ble_nrf52840_1_2_0_default.hex
uses: ./.github/actions/build_and_upload
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_nrf52840
output-bin: ble_nrf52840_default.hex
- name: Build ble_nrf52840_bthomev1.hex
revision: '1.2.0'
output-bin: ble_nrf52840_1_2_0_default.hex
- name: Build ble_nrf52840_1_1_0_default.hex
uses: ./.github/actions/build_and_upload
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_nrf52840
cmake-extra: -DCONFIG_PRST_BLE_ENCODING_BTHOME_V1=y
output-bin: ble_nrf52840_bthomev1.hex
revision: '1.1.0'
output-bin: ble_nrf52840_1_1_0_default.hex
- name: Build ble_nrf52840_1_0_0_default.hex
uses: ./.github/actions/build_and_upload
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_nrf52840
revision: '1.0.0'
output-bin: ble_nrf52840_1_0_0_default.hex
- name: Build ble_test_nrf52840_bthomev1_1s.hex
uses: ./.github/actions/build_and_upload
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_nrf52840
revision: '1.2.0'
cmake-extra: -DCONFIG_PRST_BLE_ENCODING_BTHOME_V1=y -DCONFIG_PRST_SLEEP_DURATION_SEC=1
output-bin: ble_test_nrf52840_bthomev1_1s.hex
- name: Build ble_test_nrf52840_bthomev2_1s.hex
uses: ./.github/actions/build_and_upload
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_nrf52840
revision: '1.2.0'
cmake-extra: -DCONFIG_PRST_BLE_ENCODING_BTHOME_V2=y -DCONFIG_PRST_SLEEP_DURATION_SEC=1
output-bin: ble_test_nrf52840_bthomev2_1s.hex
- name: Build ble_nrf52833_default.hex
uses: ./.github/actions/build_and_upload
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_nrf52833
output-bin: ble_nrf52833_default.hex
- name: Build ble_nrf52833_bthomev1.hex
uses: ./.github/actions/build_and_upload
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_nrf52833
cmake-extra: -DCONFIG_PRST_BLE_ENCODING_BTHOME_V1=y
output-bin: ble_nrf52833_bthomev1.hex
output-bin: ble_nrf52833_default.hex