mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00

Use new meshtastic/gh-action-firmware Action Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
39 lines
885 B
YAML
39 lines
885 B
YAML
name: Build RPI2040
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
board:
|
|
required: true
|
|
type: string
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
build-rpi2040:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Get release version string
|
|
shell: bash
|
|
run: echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
|
id: version
|
|
|
|
- name: Build Raspberry Pi 2040
|
|
id: build
|
|
uses: meshtastic/gh-action-firmware@main
|
|
with:
|
|
pio_platform: rp2xx0
|
|
pio_env: ${{ inputs.board }}
|
|
pio_target: build
|
|
|
|
- name: Store binaries as an artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: firmware-rp2040-${{ inputs.board }}-${{ steps.version.outputs.long }}.zip
|
|
overwrite: true
|
|
path: |
|
|
release/*.uf2
|
|
release/*.elf
|