Skip to content

Add CI (#2)

Add CI (#2) #6

Workflow file for this run

name: PlatformIO CI
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
clang-format-check:
name: Clang-format formatting check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check.
uses: jidicula/[email protected]
with:
clang-format-version: '14'
include-regex: ^.*\.(cpp|hpp)$
build:
name: PlatformIO build
runs-on: ubuntu-latest
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@v4
with:
python-version: '3.10'
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO
run: pio run -e genericSTM32F401RC