Skip to content

Commit

Permalink
feat: Create pio.yml testing PlatformIO build (#6)
Browse files Browse the repository at this point in the history
* Create pio.yml testing PlatformIO build

Runs `pio run` on all pushes to check for compilability.

* Expand Cache in pio.yml

Caches the whole ~/.platformio directory, as well as the build itself in .pio/
  • Loading branch information
jclds139 authored Oct 3, 2024
1 parent 39364bf commit d0f7239
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/pio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PlatformIO CI

on:
push:
paths:
- '**.kicad_sch'
- '**.kicad_pcb'
- '**.kicad_pro'
- '.github/**.yml'
pull_request:
paths:
- '**.kicad_sch'
- '**.kicad_pcb'
- '**.kicad_pro'
- '.github/**.yml'
merge_group:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/
.pio/
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Build PlatformIO Project
run: pio run

0 comments on commit d0f7239

Please sign in to comment.