Skip to content

Commit a97d27c

Browse files
committed
Dont use killall on windows
1 parent 1496f97 commit a97d27c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,19 @@ jobs:
280280
# Use retry loop to work around intermittent transfer issue
281281
uses: nick-fields/retry@9417ab499314dfe692edb043ded2ff9b3f5f0a68 # v3
282282
with:
283+
shell: bash
283284
max_attempts: 10
284285
timeout_minutes: 20
285286
retry_wait_seconds: 5
286287
command: |
287288
cd ${{ matrix.vcpkg_path }}
288-
bash .github/deploy.sh ${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.deps_name }}-${{ steps.vars.outputs.sha_short }}.zip
289+
.github/deploy.sh ${{ env.DEPS_BASE_NAME }}-${{ env.MIXXX_VERSION }}-${{ matrix.deps_name }}-${{ steps.vars.outputs.sha_short }}.zip
289290
on_retry_command: |
290-
killall ssh-agent || true
291+
if [[ "$RUNNER_OS" == "Windows" ]]; then
292+
powershell -Command "Get-Process ssh-agent -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue"
293+
else
294+
killall ssh-agent || true
295+
fi
291296
env:
292297
DESTDIR: public_html/downloads/dependencies
293298
OS: ${{ runner.os }}

0 commit comments

Comments
 (0)