Skip to content

Add payload for Xiao ESP32C3 #6

Add payload for Xiao ESP32C3

Add payload for Xiao ESP32C3 #6

Workflow file for this run

name: PlatformIO Build
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
payload: [led_progress_bar]
runs-on: ubuntu-latest
outputs:
pkgfile: ${{ steps.pkgname.outputs.pkgfile }}
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update -qq
sudo apt install -yqq python3
pip install -U platformio
- name: Update PlatformIO
run: |
cd "$(realpath "$GITHUB_WORKSPACE")/${{ matrix.payload }}"
pio pkg update
- name: Build firmware
run: |
cd "$(realpath "$GITHUB_WORKSPACE")/${{ matrix.payload }}"
platformio run
- name: Upload files
uses: actions/upload-artifact@v3
with:
name: "${{ matrix.payload }} bin"
path: "${{ matrix.payload }}/.pio/build/firmware.bin"
- name: Release build artifacts
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
"${{ matrix.payload }}/.pio/build/firmware.bin"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}