2022-11-20 01:23:35 +00:00
|
|
|
name: Build NRF52
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
board:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
2023-01-27 16:22:17 +00:00
|
|
|
jobs:
|
2022-11-20 01:23:35 +00:00
|
|
|
build-nrf52:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-13 08:47:40 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-20 01:23:35 +00:00
|
|
|
- name: Build base
|
|
|
|
id: base
|
|
|
|
uses: ./.github/actions/setup-base
|
|
|
|
|
|
|
|
- name: Build NRF52
|
2022-11-20 01:39:39 +00:00
|
|
|
run: bin/build-nrf52.sh ${{ inputs.board }}
|
2022-11-20 01:23:35 +00:00
|
|
|
|
|
|
|
- name: Get release version string
|
|
|
|
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
|
|
|
id: version
|
|
|
|
|
|
|
|
- name: Store binaries as an artifact
|
2024-05-13 08:47:40 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-11-20 01:23:35 +00:00
|
|
|
with:
|
2022-11-20 01:39:39 +00:00
|
|
|
name: firmware-${{ inputs.board }}-${{ steps.version.outputs.version }}.zip
|
2024-05-13 08:47:40 +00:00
|
|
|
overwrite: true
|
2022-11-20 01:23:35 +00:00
|
|
|
path: |
|
2024-07-09 14:23:59 +00:00
|
|
|
release/*.hex
|
2022-11-20 01:23:35 +00:00
|
|
|
release/*.uf2
|
|
|
|
release/*.elf
|
2023-01-27 16:22:17 +00:00
|
|
|
release/*.zip
|