Files
Martin JägerandClaude Opus 5.5 a7838b022c ci: install clang-format via pip
The clang-format-15 package is not available anymore in the latest
Ubuntu runner image. Installing clang-format from PyPI makes the style
check independent of the runner image and allows to use the same
version locally:

  pip install clang-format==23.1.*

The style check script prefers the clang-format-diff.py installed by
pip and prints the clang-format version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 12:22:22 +01:00

50 lines
1.2 KiB
YAML

name: Build firmware
on:
push:
pull_request:
jobs:
build:
# Avoid running twice if pushing to a PR branch in the base repo
if: >
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
defaults:
run:
working-directory: firmware
steps:
- name: Checkout
uses: actions/checkout@v6
with:
path: firmware
fetch-depth: 0 # necessary to get tags
- name: Python setup
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Zephyr project setup
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: firmware
toolchains: arm-zephyr-eabi
- name: Coding style check
run: |
sudo apt-get update
sudo apt-get install -y colordiff
pip install clang-format==23.1.*
git status
bash scripts/check-style.sh
- name: Build firmware
run: |
west twister -T app --integration --inline-logs
- name: Run tests
run: |
west twister -T tests --integration --inline-logs