Updates GitHub actions to build for different board revisions
This commit is contained in:
parent
8bfd75de78
commit
cc62786d16
2 changed files with 34 additions and 13 deletions
4
.github/actions/build_and_upload/action.yml
vendored
4
.github/actions/build_and_upload/action.yml
vendored
|
|
@ -7,6 +7,9 @@ inputs:
|
||||||
board:
|
board:
|
||||||
description: 'Board definition to use'
|
description: 'Board definition to use'
|
||||||
required: true
|
required: true
|
||||||
|
revision:
|
||||||
|
description: 'Board revision use'
|
||||||
|
default: '1.2.0'
|
||||||
cmake-extra:
|
cmake-extra:
|
||||||
description: 'Extra CMake arguments'
|
description: 'Extra CMake arguments'
|
||||||
default: ''
|
default: ''
|
||||||
|
|
@ -21,6 +24,7 @@ runs:
|
||||||
with:
|
with:
|
||||||
sample-dir: ${{ inputs.sample-dir }}
|
sample-dir: ${{ inputs.sample-dir }}
|
||||||
board: ${{ inputs.board }}
|
board: ${{ inputs.board }}
|
||||||
|
revision: ${{ inputs.revision }}
|
||||||
cmake-extra: ${{ inputs.cmake-extra }}
|
cmake-extra: ${{ inputs.cmake-extra }}
|
||||||
output-bin: ${{ inputs.output-bin }}
|
output-bin: ${{ inputs.output-bin }}
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
|
|
||||||
43
.github/workflows/b-parasite.yml
vendored
43
.github/workflows/b-parasite.yml
vendored
|
|
@ -29,29 +29,46 @@ jobs:
|
||||||
sample-dir: code/nrf-connect/samples/soil_read_loop
|
sample-dir: code/nrf-connect/samples/soil_read_loop
|
||||||
board: bparasite_nrf52840
|
board: bparasite_nrf52840
|
||||||
output-bin: soil_read_loop_nrf52840.hex
|
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
|
uses: ./.github/actions/build_and_upload
|
||||||
with:
|
with:
|
||||||
sample-dir: code/nrf-connect/samples/ble
|
sample-dir: code/nrf-connect/samples/ble
|
||||||
board: bparasite_nrf52840
|
board: bparasite_nrf52840
|
||||||
output-bin: ble_nrf52840_default.hex
|
revision: '1.2.0'
|
||||||
- name: Build ble_nrf52840_bthomev1.hex
|
output-bin: ble_nrf52840_1_2_0_default.hex
|
||||||
|
- name: Build ble_nrf52840_1_1_0_default.hex
|
||||||
uses: ./.github/actions/build_and_upload
|
uses: ./.github/actions/build_and_upload
|
||||||
with:
|
with:
|
||||||
sample-dir: code/nrf-connect/samples/ble
|
sample-dir: code/nrf-connect/samples/ble
|
||||||
board: bparasite_nrf52840
|
board: bparasite_nrf52840
|
||||||
cmake-extra: -DCONFIG_PRST_BLE_ENCODING_BTHOME_V1=y
|
revision: '1.1.0'
|
||||||
output-bin: ble_nrf52840_bthomev1.hex
|
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
|
- name: Build ble_nrf52833_default.hex
|
||||||
uses: ./.github/actions/build_and_upload
|
uses: ./.github/actions/build_and_upload
|
||||||
with:
|
with:
|
||||||
sample-dir: code/nrf-connect/samples/ble
|
sample-dir: code/nrf-connect/samples/ble
|
||||||
board: bparasite_nrf52833
|
board: bparasite_nrf52833
|
||||||
output-bin: ble_nrf52833_default.hex
|
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
|
|
||||||
Loading…
Add table
Reference in a new issue