Skip to content

Commit 0956217

Browse files
committed
Address comments
1 parent 1078f8a commit 0956217

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/windows-build-and-test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,18 @@ jobs:
3434
shell: powershell
3535
run: |
3636
irm -useb https://pixi.sh/install.ps1 | iex
37+
# Refresh PATH environment
38+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","User") + ";" + [System.Environment]::GetEnvironmentVariable("Path","Machine")
39+
# Show installation location
40+
Write-Host "Pixi installed at: $(where.exe pixi)"
3741
3842
- name: Install dependencies
3943
shell: powershell
4044
run: |
45+
# Ensure pixi is accessible by using the full path
46+
$pixiPath = "$env:USERPROFILE\.pixi\bin\pixi.exe"
4147
irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/kilted/pixi.toml -OutFile pixi.toml
42-
pixi install
48+
& $pixiPath install
4349
4450
- name: Install 7-Zip
4551
shell: powershell
@@ -63,7 +69,8 @@ jobs:
6369
- name: Test rclnodejs
6470
shell: powershell
6571
run: |
66-
pixi shell
72+
$pixiPath = "$env:USERPROFILE\.pixi\bin\pixi.exe"
73+
& $pixiPath shell
6774
call "c:\dev\kilted\ros2-windows\setup.bat"
6875
npm test
6976

0 commit comments

Comments
 (0)