Skip to content

Commit ceced97

Browse files
committed
set smoke test shell to powershell and use powershell code for sleeping and killing
1 parent 82b236f commit ceced97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ jobs:
6666
6767
- name: Test Executable for Windows
6868
if: matrix.os == 'windows-latest'
69+
shell: pwsh
6970
run: |
70-
./dist/viewer_win64_python${{ matrix.python-version }}.exe &
71-
VIEWER_PID=$!
72-
sleep 10
73-
kill $VIEWER_PID
71+
$process = Start-Process -FilePath "dist/viewer_win64_python_${{ matrix.python-version }}.exe" -PassThru
72+
Start-Sleep -Seconds 10
73+
$process.Kill()
7474
7575
- name: Upload Artifacts
7676
if: matrix.python-version == '3.11'

0 commit comments

Comments
 (0)