Skip to content

Commit

Permalink
audio args
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 9, 2024
1 parent de29762 commit 181a4e3
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ jobs:
if ($screamDevice) {
$env:TEST_AUDIO_DEVICE = $screamDevice.Name
Write-Output "Using Scream audio device: $($env:TEST_AUDIO_DEVICE)"
echo "TEST_AUDIO_DEVICE=$($env:TEST_AUDIO_DEVICE)" >> $env:GITHUB_ENV
} else {
Write-Error "Scream audio device not found"
exit 1
Write-Warning "Scream audio device not found. TEST_AUDIO_DEVICE will not be set."
}
- name: Setup and run CLI (Windows)
Expand All @@ -347,7 +347,19 @@ jobs:
$env:RUST_BACKTRACE = "full"
New-Item -ItemType Directory -Force -Path .\test_data\logs
$process = Start-Process -FilePath .\screenpipe.exe -ArgumentList "--data-dir", ".\test_data", "--fps", "1", "--audio-device", "$env:TEST_AUDIO_DEVICE" -NoNewWindow -PassThru -RedirectStandardOutput .\test_data\logs\screenpipe_output.log -RedirectStandardError .\test_data\logs\screenpipe_error.log
# Debug: Print the TEST_AUDIO_DEVICE value
Write-Output "TEST_AUDIO_DEVICE: $env:TEST_AUDIO_DEVICE"
# Construct the command arguments
$args = @("--data-dir", ".\test_data", "--fps", "1")
if ($env:TEST_AUDIO_DEVICE) {
$args += "--audio-device", $env:TEST_AUDIO_DEVICE
} else {
Write-Warning "TEST_AUDIO_DEVICE is not set. Running without --audio-device parameter."
}
# Start the process with the constructed arguments
$process = Start-Process -FilePath .\screenpipe.exe -ArgumentList $args -NoNewWindow -PassThru -RedirectStandardOutput .\test_data\logs\screenpipe_output.log -RedirectStandardError .\test_data\logs\screenpipe_error.log
if ($null -eq $process) {
Write-Error "Failed to start screenpipe process"
Expand Down

0 comments on commit 181a4e3

Please sign in to comment.