mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2025-12-18 15:17:42 +03:00
32 lines
719 B
YAML
32 lines
719 B
YAML
name: CI
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
- uses: actions/cache@v5
|
|
with:
|
|
path: |
|
|
~/.cache/pip
|
|
~/.platformio/.cache
|
|
key: ${{ runner.os }}-pio
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.14'
|
|
- name: Install PlatformIO Core
|
|
run: pip install --upgrade platformio
|
|
|
|
- name: Run cppcheck
|
|
run: pio check --fail-on-defect medium --fail-on-defect high
|
|
|
|
- name: Run clang-format
|
|
run: bin/clang-format-fix && git diff --exit-code
|
|
|
|
- name: Build CrossPoint
|
|
run: pio run
|