Skip to content

Commit 4f2a403

Browse files
chore(deps-dev): bump clang-tools from 0.18.0 to 1.1.0 (#450)
* chore(deps-dev): bump clang-tools from 0.18.0 to 1.0.0 in the org group Bumps the org group with 1 update: [clang-tools](https://github.com/cpp-linter/clang-tools-pip). Updates `clang-tools` from 0.18.0 to 1.0.0 - [Release notes](https://github.com/cpp-linter/clang-tools-pip/releases) - [Commits](cpp-linter/clang-tools-pip@v0.18.0...v1.0.0) --- updated-dependencies: - dependency-name: clang-tools dependency-version: 1.0.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: org ... Signed-off-by: dependabot[bot] <support@github.com> * fix: update clang-tools installation commands in action.yml * Revert "chore(deps-dev): bump clang-tools from 0.18.0 to 1.0.0 in the org group" This reverts commit c5b853f. * chore(deps-dev): update clang-tools to version 1.0.0 * fix: replace --install with positional version arg for clang-tools v1.0.0 * fix: unify clang-tools install command style * fix: seed uv venv with pip for clang-tools v1.0.0 --wheel mode * fix: install pip in venv for clang-tools v1.0.0 --wheel * fix: update clang-tools install command to use --version flag * fix: ensure pip is available in the virtual environment for clang-tools installation * Apply suggestion from @shenxianpeng * fix: use --binary for all clang-tools installs, drop --wheel support The --wheel install path is broken for clang-tidy versions 15/16/17 on Windows due to missing DLL dependencies in the pip wheels. - Always use --binary (static builds) which are self-contained - Remove the uv pip install pip step (only needed by --wheel) - Static builds support all versions 11-22 across Linux/macOS/Windows * Apply suggestion from @shenxianpeng * Apply suggestion from @shenxianpeng --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: shenxianpeng <xianpeng.shen@gmail.com>
1 parent b9820e1 commit 4f2a403

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

action.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -412,18 +412,7 @@ runs:
412412
print $"\n(ansi purple)Ensuring ($tools | str join ' and ') ($version_str) are present(ansi reset)"
413413
for tool in $tools {
414414
print $"Installing ($tool) ($version)"
415-
let cmd = if (
416-
(($version < 13) and ($tool | str ends-with "tidy"))
417-
or (
418-
($version <= 9)
419-
and ($tool | str ends-with "format")
420-
and not ((version | get "build_os") | str starts-with "linux")
421-
)
422-
) {
423-
[clang-tools --tool $tool --install $version]
424-
} else {
425-
[clang-tools-wheel --tool $tool --version $version]
426-
}
415+
let cmd = [clang-tools install $tool --version $version]
427416
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args ...$cmd
428417
}
429418

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies = []
66

77
[dependency-groups]
88
action = [
9-
"clang-tools==0.18.0",
9+
"clang-tools==1.1.0",
1010
"cpp-linter==1.12.1",
1111
]
1212
dev = [

0 commit comments

Comments
 (0)