File tree Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,37 @@ jobs:
150150 clang-apply-replacements-${{ matrix.version }} --version
151151 fi
152152
153+ - name : Install clang-tools wheels
154+ run : |
155+ clang-tools-wheel --tool clang-format --version ${{ matrix.version }}
156+ clang-tools-wheel --tool clang-tidy --version ${{ matrix.version }}
157+
158+ - name : Check clang tool wheels
159+ run : |
160+ set -e
161+ echo "Checking clang-format and clang-tidy versions..."
162+ clang-format --version
163+ clang-tidy --version
164+
165+ # Verify versions contain expected string
166+ clang_format_version=$(clang-format --version)
167+ clang_tidy_version=$(clang-tidy --version)
168+
169+ echo "clang-format version: $clang_format_version"
170+ echo "clang-tidy version: $clang_tidy_version"
171+
172+ if ! echo "$clang_format_version" | grep -q "version ${{ matrix.version }}"; then
173+ echo "❌ Unexpected clang-format version!"
174+ exit 1
175+ fi
176+
177+ if ! echo "$clang_tidy_version" | grep -q "version ${{ matrix.version }}"; then
178+ echo "❌ Unexpected clang-tidy version!"
179+ exit 1
180+ fi
181+
182+ echo "✅ Versions are correct."
183+
153184 docs :
154185 uses : cpp-linter/.github/.github/workflows/sphinx.yml@main
155186 with :
Original file line number Diff line number Diff line change 11repos :
22 - repo : https://github.com/pre-commit/pre-commit-hooks
3- rev : v5 .0.0
3+ rev : v6 .0.0
44 hooks :
55 - id : trailing-whitespace
66 exclude : \.output
@@ -12,13 +12,13 @@ repos:
1212 - id : debug-statements
1313 - id : requirements-txt-fixer
1414 - repo : https://github.com/asottile/pyupgrade
15- rev : v3.20 .0
15+ rev : v3.21 .0
1616 hooks :
1717 - id : pyupgrade
1818 - repo : https://github.com/astral-sh/ruff-pre-commit
19- rev : v0.11.11
19+ rev : v0.14.3
2020 hooks :
21- - id : ruff
21+ - id : ruff-check
2222 - id : ruff-format
2323 # - repo: local
2424 # hooks:
You can’t perform that action at this time.
0 commit comments