Skip to content

Commit

Permalink
fix windows failure 2
Browse files Browse the repository at this point in the history
Signed-off-by: David Anyatonwu <[email protected]>
  • Loading branch information
onyedikachi-david committed Sep 7, 2024
1 parent 005c16c commit 0ef7f2f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,12 @@ jobs:
path: .

- name: Install FFmpeg
shell: pwsh
run: |
choco install ffmpeg -y
refreshenv
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
Write-Output "FFmpeg version:"
ffmpeg -version
- name: Setup and run CLI (Windows)
shell: pwsh
Expand All @@ -308,6 +311,19 @@ jobs:
$env:RUST_BACKTRACE = "1"
New-Item -ItemType Directory -Force -Path .\test_data\logs
# Debug: List directory contents
Write-Output "Directory contents:"
Get-ChildItem -Recurse
# Debug: Check screenpipe.exe exists and its permissions
if (Test-Path .\screenpipe.exe) {
Write-Output "screenpipe.exe exists"
Get-Acl .\screenpipe.exe | Format-List
} else {
Write-Error "screenpipe.exe not found"
exit 1
}
# Start screenpipe and capture its process ID
$screenpipeProcess = Start-Process -FilePath .\screenpipe.exe -ArgumentList "--data-dir", ".\test_data", "--fps", "1" -NoNewWindow -PassThru -RedirectStandardOutput .\test_data\logs\screenpipe.log -RedirectStandardError .\test_data\logs\screenpipe_error.log
$screenpipePID = $screenpipeProcess.Id
Expand Down Expand Up @@ -366,7 +382,7 @@ jobs:
exit 1
- name: Upload logs
if: failure()
if: always()
uses: actions/upload-artifact@v3
with:
name: windows-test-logs
Expand Down

0 comments on commit 0ef7f2f

Please sign in to comment.