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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a77e734a88
commit
a7838b022c
@@ -35,7 +35,8 @@ jobs:
|
||||
- name: Coding style check
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang-format-15 colordiff
|
||||
sudo apt-get install -y colordiff
|
||||
pip install clang-format==23.1.*
|
||||
git status
|
||||
bash scripts/check-style.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user