54 lines
1.8 KiB
YAML
54 lines
1.8 KiB
YAML
name: ESP32 Firmware Builds
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
firmware-builds:
|
|
runs-on: ubuntu-24.04
|
|
container:
|
|
image: node:20-bookworm-slim
|
|
steps:
|
|
- name: Install Git and Python
|
|
run: apt-get update && apt-get install -y --no-install-recommends git python3 python3-pip python3-venv 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: python3 -m venv .venv && .venv/bin/pip install --no-cache-dir platformio
|
|
shell: bash
|
|
- name: Build SD-card firmware
|
|
run: .venv/bin/pio run -e sd_variant
|
|
shell: bash
|
|
- name: Build flash firmware
|
|
run: .venv/bin/pio run -e flash_variant
|
|
shell: bash
|
|
- name: Build USB-MSC diagnostic firmware
|
|
run: .venv/bin/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
|