Skip to content

Commit 77f13fe

Browse files
committed
Fix issue
1 parent 791c486 commit 77f13fe

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,25 @@ jobs:
3434
shell: powershell
3535
run: |
3636
irm -useb https://pixi.sh/install.ps1 | iex
37-
exit
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"
3856

3957
- name: Install dependencies
4058
shell: powershell

0 commit comments

Comments
 (0)