mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-27 15:02:41 +00:00
Some checks are pending
Daily Packaging / docker-multiarch (push) Waiting to run
Daily Packaging / package-ppa (jammy) (push) Waiting to run
Daily Packaging / package-ppa (noble) (push) Waiting to run
Daily Packaging / package-ppa (plucky) (push) Waiting to run
Daily Packaging / package-ppa (questing) (push) Waiting to run
Daily Packaging / package-obs (push) Waiting to run
Daily Packaging / hook-copr (push) Waiting to run
CI / setup (all) (push) Waiting to run
CI / setup (check) (push) Waiting to run
CI / version (push) Waiting to run
CI / check (push) Blocked by required conditions
CI / build (push) Blocked by required conditions
CI / build-debian-src (push) Waiting to run
CI / package-pio-deps-native-tft (push) Waiting to run
CI / test-native (push) Waiting to run
CI / docker (alpine, native, linux/amd64) (push) Waiting to run
CI / docker (alpine, native, linux/arm64) (push) Waiting to run
CI / docker (alpine, native-tft, linux/amd64) (push) Waiting to run
CI / docker (debian, native, linux/amd64) (push) Waiting to run
CI / docker (debian, native, linux/arm/v7) (push) Waiting to run
CI / docker (debian, native, linux/arm64) (push) Waiting to run
CI / docker (debian, native-tft, linux/amd64) (push) Waiting to run
CI / gather-artifacts (esp32) (push) Blocked by required conditions
CI / gather-artifacts (esp32c3) (push) Blocked by required conditions
CI / gather-artifacts (esp32c6) (push) Blocked by required conditions
CI / gather-artifacts (esp32s3) (push) Blocked by required conditions
CI / gather-artifacts (nrf52840) (push) Blocked by required conditions
CI / gather-artifacts (rp2040) (push) Blocked by required conditions
CI / gather-artifacts (rp2350) (push) Blocked by required conditions
CI / gather-artifacts (stm32) (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / release-firmware (esp32) (push) Blocked by required conditions
CI / release-firmware (esp32c3) (push) Blocked by required conditions
CI / release-firmware (esp32c6) (push) Blocked by required conditions
CI / release-firmware (esp32s3) (push) Blocked by required conditions
CI / release-firmware (nrf52840) (push) Blocked by required conditions
CI / release-firmware (rp2040) (push) Blocked by required conditions
CI / release-firmware (rp2350) (push) Blocked by required conditions
CI / release-firmware (stm32) (push) Blocked by required conditions
CI / publish-firmware (push) Blocked by required conditions
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
name: Build
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
version:
|
|
required: true
|
|
type: string
|
|
platform:
|
|
required: true
|
|
type: string
|
|
pio_env:
|
|
required: true
|
|
type: string
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
pio-build:
|
|
name: build-${{ inputs.platform }}
|
|
runs-on: ubuntu-24.04
|
|
outputs:
|
|
artifact-id: ${{ steps.upload.outputs.artifact-id }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
submodules: recursive
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
|
|
- name: Set OTA firmware source and target
|
|
if: startsWith(inputs.platform, 'esp32')
|
|
id: ota_dir
|
|
env:
|
|
PIO_PLATFORM: ${{ inputs.platform }}
|
|
run: |
|
|
if [ "$PIO_PLATFORM" = "esp32s3" ]; then
|
|
echo "src=firmware-s3.bin" >> $GITHUB_OUTPUT
|
|
echo "tgt=release/bleota-s3.bin" >> $GITHUB_OUTPUT
|
|
elif [ "$PIO_PLATFORM" = "esp32c3" ] || [ "$PIO_PLATFORM" = "esp32c6" ]; then
|
|
echo "src=firmware-c3.bin" >> $GITHUB_OUTPUT
|
|
echo "tgt=release/bleota-c3.bin" >> $GITHUB_OUTPUT
|
|
elif [ "$PIO_PLATFORM" = "esp32" ]; then
|
|
echo "src=firmware.bin" >> $GITHUB_OUTPUT
|
|
echo "tgt=release/bleota.bin" >> $GITHUB_OUTPUT
|
|
fi
|
|
|
|
- name: Build ${{ inputs.platform }}
|
|
id: build
|
|
uses: meshtastic/gh-action-firmware@main
|
|
with:
|
|
pio_platform: ${{ inputs.platform }}
|
|
pio_env: ${{ inputs.pio_env }}
|
|
pio_target: build
|
|
ota_firmware_source: ${{ steps.ota_dir.outputs.src || '' }}
|
|
ota_firmware_target: ${{ steps.ota_dir.outputs.tgt || '' }}
|
|
|
|
- name: Store binaries as an artifact
|
|
uses: actions/upload-artifact@v5
|
|
id: upload
|
|
with:
|
|
name: firmware-${{ inputs.platform }}-${{ inputs.pio_env }}-${{ inputs.version }}.zip
|
|
overwrite: true
|
|
path: |
|
|
release/*.bin
|
|
release/*.elf
|
|
release/*.uf2
|
|
release/*.hex
|
|
release/*-ota.zip
|