54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
name: ESP32 Firmware Builds
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
firmware-builds:
|
|
runs-on: ubuntu-24.04
|
|
container:
|
|
image: python:3.12-bookworm
|
|
steps:
|
|
- name: Install Git
|
|
run: apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
shell: bash
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
- name: Create local build configuration
|
|
run: cp include/config.example.h include/config.h
|
|
shell: bash
|
|
- name: Install PlatformIO
|
|
run: python -m pip install --no-cache-dir platformio
|
|
shell: bash
|
|
- name: Build SD-card firmware
|
|
run: pio run -e sd_variant
|
|
shell: bash
|
|
- name: Build flash firmware
|
|
run: pio run -e flash_variant
|
|
shell: bash
|
|
- name: Build USB-MSC diagnostic firmware
|
|
run: pio run -e usb_msc_test
|
|
shell: bash
|
|
- name: Upload SD-card firmware artifact
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: plasma-bridge-sd-variant
|
|
path: .pio/build/sd_variant/firmware.bin
|
|
if-no-files-found: error
|
|
- name: Upload flash firmware artifact
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: plasma-bridge-flash-variant
|
|
path: .pio/build/flash_variant/firmware.bin
|
|
if-no-files-found: error
|
|
- name: Upload USB-MSC diagnostic artifact
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: plasma-bridge-usb-msc-test
|
|
path: .pio/build/usb_msc_test/firmware.bin
|
|
if-no-files-found: error
|