Skip to content

Commit 0670362

Browse files
committed
use combo of --project and --directory
enable verbosity in uv output
1 parent d7155ea commit 0670362

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ runs:
296296
run: |-
297297
let action_path = $env.GITHUB_ACTION_PATH | path expand
298298
$env.UV_INSTALL_DIR = $action_path | path join 'bin'
299-
$env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
300299
301300
$env.UV_CACHE_DIR = $env.RUNNER_TEMP | path join 'cpp-linter-action-cache'
302301
if (not ($env.UV_CACHE_DIR | path exists)) {
@@ -311,18 +310,19 @@ runs:
311310
}
312311
313312
print $"\n(ansi purple)Installing workflow dependencies(ansi reset)"
314-
^$'($env.UV_INSTALL_DIR)/uv' sync --directory $action_path --group action
313+
^$'($env.UV_INSTALL_DIR)/uv' sync -v --project $action_path --group action
315314
316315
print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
317-
^$'($env.UV_INSTALL_DIR)/uv' run clang-tools -i ${{ inputs.version }} -b
316+
let cmd = [clang-tools -i ${{ inputs.version }} -b]
317+
let uv_args = [run --no-sync --project $action_path --directory (pwd)]
318+
^$'($env.UV_INSTALL_DIR)/uv' -v ...$uv_args ...$cmd
318319
319320
- name: Run cpp-linter
320321
id: cpp-linter
321322
shell: nu {0}
322323
run: |-
323324
let action_path = $env.GITHUB_ACTION_PATH | path expand
324325
$env.UV_INSTALL_DIR = $action_path | path join 'bin'
325-
$env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
326326
$env.UV_CACHE_DIR = $env.RUNNER_TEMP | path join 'cpp-linter-action-cache'
327327
328328
let args = [
@@ -350,4 +350,5 @@ runs:
350350
]
351351
352352
print $"\n(ansi purple)Running cpp-linter(ansi reset)"
353-
^$'($env.UV_INSTALL_DIR)/uv' run cpp-linter ...$args
353+
let uv_args = [run --no-sync --project $action_path --directory (pwd)]
354+
^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args -v cpp-linter ...$args

0 commit comments

Comments
 (0)