Skip to content

Commit

Permalink
fix build process timeout
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 6, 2024
1 parent a3b8924 commit 1d179f9
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
DYLD_LIBRARY_PATH: /Users/runner/work/screenpipe/screenpipe/screenpipe-vision/lib
run: cargo test test_apple_native_ocr

test-cli:
build-cli:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand Down Expand Up @@ -152,6 +152,28 @@ jobs:
- name: Build CLI
run: cargo build --release --bin screenpipe
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true
RUSTFLAGS: "-C target-cpu=native"

- uses: actions/upload-artifact@v3
with:
name: screenpipe-${{ matrix.os }}
path: target/release/screenpipe*

test-cli:
needs: build-cli
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 60 # Increase timeout to 60 minutes
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: screenpipe-${{ matrix.os }}
path: .

- name: Set up virtual display and audio (Ubuntu)
if: matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -187,7 +209,7 @@ jobs:
export DISPLAY=:99
echo "DISPLAY=$DISPLAY"
xdpyinfo || true
DISPLAY=:99 RUST_LOG=debug ./target/release/screenpipe --data-dir ./test_data --fps 1 > screenpipe_output.log 2>&1 &
DISPLAY=:99 RUST_LOG=debug ./screenpipe --data-dir ./test_data --fps 1 > screenpipe_output.log 2>&1 &
CLI_PID=$!
sleep 10 # Give CLI some time to start up
for i in {1..24}; do
Expand Down Expand Up @@ -237,7 +259,7 @@ jobs:
if: matrix.os == 'windows-latest'
run: |
$env:RUST_LOG = "debug"
Start-Process -FilePath .\target\release\screenpipe.exe -ArgumentList "--data-dir", ".\test_data" -NoNewWindow -PassThru -RedirectStandardOutput screenpipe_output.log -RedirectStandardError screenpipe_error.log
Start-Process -FilePath .\screenpipe.exe -ArgumentList "--data-dir", ".\test_data" -NoNewWindow -PassThru -RedirectStandardOutput screenpipe_output.log -RedirectStandardError screenpipe_error.log
Start-Sleep -Seconds 10 # Give CLI some time to start up
Start-Process -FilePath powershell -ArgumentList "-File", ".\scripts\simulate_screen_activity.ps1" -NoNewWindow
Start-Process -FilePath powershell -ArgumentList "-File", ".\scripts\simulate_audio_activity.ps1" -NoNewWindow
Expand Down

0 comments on commit 1d179f9

Please sign in to comment.