mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00
43 lines
995 B
YAML
43 lines
995 B
YAML
name: Build NRF52
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
version:
|
|
required: true
|
|
type: string
|
|
board:
|
|
required: true
|
|
type: string
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
build-nrf52:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
|
|
- name: Build NRF52
|
|
id: build
|
|
uses: meshtastic/gh-action-firmware@main
|
|
with:
|
|
pio_platform: nrf52
|
|
pio_env: ${{ inputs.board }}
|
|
pio_target: build
|
|
|
|
- name: Store binaries as an artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: firmware-nrf52840-${{ inputs.board }}-${{ inputs.version }}.zip
|
|
overwrite: true
|
|
path: |
|
|
release/*.uf2
|
|
release/*.elf
|
|
release/*.hex
|
|
release/*-ota.zip
|