Skip to content

Commit 000ca66

Browse files
committed
fix: install clang-format and clang-tidy
1 parent 57cecf8 commit 000ca66

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

action.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,15 @@ runs:
377377
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args
378378
379379
print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
380-
let cmd = [clang-tools-wheel --tool clang-format --version ${{ inputs.version }}, clang-tools-wheel --tool clang-tidy --version ${{ inputs.version }}]
381-
$uv_args = [run --no-sync --project $action_path --directory (pwd)]
382-
if $verbosity {
383-
$uv_args = $uv_args | append '-v'
380+
let tools = ['clang-format' 'clang-tidy']
381+
for tool in $tools {
382+
let cmd = [clang-tools-wheel --tool $tool --version ${{ inputs.version }}]
383+
$uv_args = [run --no-sync --project $action_path --directory (pwd)]
384+
if $verbosity {
385+
$uv_args = $uv_args | append '-v'
386+
}
387+
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args ...$cmd
384388
}
385-
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args ...$cmd
386389
387390
- name: Run cpp-linter
388391
id: cpp-linter

0 commit comments

Comments
 (0)