Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: David Anyatonwu <[email protected]>
  • Loading branch information
onyedikachi-david committed Aug 27, 2024
1 parent 4b3e47f commit c573575
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y tesseract-ocr libtesseract-dev libavformat-dev libavfilter-dev libavdevice-dev ffmpeg libasound2-dev libgtk-3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
sudo apt-get install -y libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
- name: Copy test image
run: |
Expand Down Expand Up @@ -146,6 +147,7 @@ jobs:
sudo apt-get install -y pkg-config xvfb pulseaudio xdotool x11-xserver-utils sox
sudo apt-get install -y libx11-dev libxcb1-dev
sudo apt-get install -y scrot
sudo apt-get install -y libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
- name: Build CLI
run: cargo build --release --bin screenpipe
Expand All @@ -161,11 +163,13 @@ jobs:
sleep 2
openbox &
sleep 2
# Set up PulseAudio with a null sink
pulseaudio --start
pactl load-module module-null-sink sink_name=virtual_speaker
pactl set-default-sink virtual_speaker
pactl load-module module-virtual-source source_name=virtual_mic master=virtual_speaker.monitor
sleep 2 # wait for pulseaudio to start
pactl set-default-source virtual_mic
sleep 2
xwininfo -root -tree || true
chmod +x ./scripts/launch_test_window.sh
./scripts/launch_test_window.sh &
Expand All @@ -180,7 +184,11 @@ jobs:
- name: Run CLI and check health (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
DISPLAY=:99 ./target/release/screenpipe --data-dir ./test_data --fps 1 &
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 &
cat screenpipe_output.log
for i in {1..24}; do
sleep 10
response=$(curl -s http://localhost:3030/health)
Expand Down

0 comments on commit c573575

Please sign in to comment.