mirror of
https://github.com/torlando-tech/pyxis.git
synced 2026-09-16 18:02:36 +00:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Build Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
environment: [tdeck, tdeck-release]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install PlatformIO
|
|
run: pip install platformio
|
|
|
|
- name: Build ${{ matrix.environment }}
|
|
run: pio run -e ${{ matrix.environment }}
|
|
|
|
- name: Audit release artifact
|
|
if: matrix.environment == 'tdeck-release'
|
|
run: python tools/audit_release_build.py
|
|
|
|
- name: Upload firmware artifact
|
|
if: matrix.environment == 'tdeck-release'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: release-firmware-${{ github.event.pull_request.head.sha }}
|
|
path: |
|
|
.pio/build/tdeck-release/firmware.bin
|
|
.pio/build/tdeck-release/bootloader.bin
|
|
.pio/build/tdeck-release/partitions.bin
|