Skip to content

Commit 3c4f3e5

Browse files
committed
use combo of --project and --directory
1 parent c6e81aa commit 3c4f3e5

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,7 @@ 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'
299+
# $env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
300300
301301
$env.UV_CACHE_DIR = $env.RUNNER_TEMP | path join 'cpp-linter-action-cache'
302302
if (not ($env.UV_CACHE_DIR | path exists)) {
@@ -311,18 +311,19 @@ runs:
311311
}
312312
313313
print $"\n(ansi purple)Installing workflow dependencies(ansi reset)"
314-
^$'($env.UV_INSTALL_DIR)/uv' sync -v --directory $action_path --group action
314+
^$'($env.UV_INSTALL_DIR)/uv' sync -v --project $action_path --group action
315315
316316
print $"\n(ansi purple)Ensuring clang-format and clang-tidy ${{ inputs.version }} are present(ansi reset)"
317-
^$'($env.UV_INSTALL_DIR)/uv' run -v clang-tools -i ${{ inputs.version }} -b
317+
^$'($env.UV_INSTALL_DIR)/uv' run --project $action_path --directory (pwd) -v clang-tools -i ${{ inputs.version }} -b
318318
319319
- name: Run cpp-linter
320320
id: cpp-linter
321321
shell: nu {0}
322322
run: |-
323323
let action_path = $env.GITHUB_ACTION_PATH | path expand
324+
print $"(ansi red)cpp-linter-action located in ($action_path)(ansi reset)"
324325
$env.UV_INSTALL_DIR = $action_path | path join 'bin'
325-
$env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
326+
# $env.UV_PROJECT_ENVIRONMENT = $action_path | path join '.venv'
326327
$env.UV_CACHE_DIR = $env.RUNNER_TEMP | path join 'cpp-linter-action-cache'
327328
328329
let args = [
@@ -350,4 +351,4 @@ runs:
350351
]
351352
352353
print $"\n(ansi purple)Running cpp-linter(ansi reset)"
353-
^$'($env.UV_INSTALL_DIR)/uv' run -v cpp-linter ...$args
354+
^$'($env.UV_INSTALL_DIR)/uv' run --project $action_path --directory (pwd) -v cpp-linter ...$args

0 commit comments

Comments
 (0)