From 1d179f90686f455334fc48ef3b9815aae65ae013 Mon Sep 17 00:00:00 2001 From: David Anyatonwu Date: Fri, 6 Sep 2024 09:02:22 +0100 Subject: [PATCH] fix build process timeout Signed-off-by: David Anyatonwu --- .github/workflows/ci.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a921cefda..b81b0c1d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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] @@ -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' @@ -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 @@ -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