Skip to content

Instantly share code, notes, and snippets.

@sutyum
Created January 15, 2022 17:34
Show Gist options
  • Save sutyum/1a17e3dda34128aea80dab91bdb47659 to your computer and use it in GitHub Desktop.
Save sutyum/1a17e3dda34128aea80dab91bdb47659 to your computer and use it in GitHub Desktop.
Platformio Github Action (Ignores semantic commits of type 'docs')
name: PlatformIO CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'docs')"
steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO
run: pio run
pip install --upgrade platformio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment