Skip to content

Commit b1a59d8

Browse files
committed
fix: install clang-format and clang-tidy
1 parent 6df3a07 commit b1a59d8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

action.yml

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

0 commit comments

Comments
 (0)