Skip to content

Commit 691b2cf

Browse files
committed
Fix issue
1 parent 954bd78 commit 691b2cf

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

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

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,10 @@ jobs:
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232

33-
- name: Install pixi
34-
shell: powershell
35-
run: |
36-
irm -useb https://pixi.sh/install.ps1 | iex
37-
# Instead of exit, refresh PATH to ensure new commands are available
38-
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
39-
40-
# Add this step if you specifically need to refresh all environment variables
41-
- name: Refresh environment
42-
shell: powershell
43-
run: |
44-
# Reload all environment variables
45-
foreach($level in "Machine","User") {
46-
[Environment]::GetEnvironmentVariables($level).GetEnumerator() | % {
47-
# For Path variables, append rather than replace
48-
if($_.Name -match 'Path$') {
49-
$_.Value = [Environment]::GetEnvironmentVariable($_.Name, $level)
50-
}
51-
# Set the variable in current session
52-
[Environment]::SetEnvironmentVariable($_.Name, $_.Value)
53-
}
54-
}
55-
Write-Host "Environment refreshed"
56-
57-
- name: Install dependencies
58-
shell: powershell
59-
run: |
33+
- uses: prefix-dev/[email protected]
34+
with:
35+
pixi-version: v0.44.0
36+
- run: |
6037
irm https://raw.githubusercontent.com/ros2/ros2/refs/heads/rolling/pixi.toml -OutFile pixi.toml
6138
pixi install
6239

0 commit comments

Comments
 (0)