Skip to content

Commit 27f319d

Browse files
authored
fix: clean all the process (#435)
1 parent bf864c8 commit 27f319d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build-upload.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,20 @@ jobs:
130130
${{ runner.temp }}/**/*.conda
131131
${{ runner.temp }}/**/*.sig
132132
133+
- name: Kill any lingering processes (Windows)
134+
if: runner.os == 'Windows'
135+
shell: powershell
136+
run: |
137+
# Kill any Python processes
138+
Get-Process python* -ErrorAction SilentlyContinue | Stop-Process -Force
139+
140+
# Kill any processes from the pixi environment
141+
$pixiPath = "${{ github.workspace }}\.pixi\envs\build\bin"
142+
Get-Process | Where-Object { $_.Path -like "$pixiPath*" } | Stop-Process -Force
143+
144+
# Wait a moment for handles to be released
145+
Start-Sleep -Seconds 2
146+
133147
aggregate:
134148
needs: build
135149
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)