Skip to content

Commit

Permalink
try xvnc
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrejb committed Mar 11, 2024
1 parent 09fbb1e commit ba9c69e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/take_screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,22 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb scrot imagemagick libxkbcommon-x11-0
sudo apt-get install -y xvfb x11vnc scrot imagemagick libxkbcommon-x11-0
- name: Start Xvfb
run: |
Xephyr :0 -screen 0 768x1024x24 > /dev/null 2>&1 &
sleep 5 # Add a delay to give Xvfb time to start
xvnc -geometry 1024x768 -depth 16 :10 > /dev/null 2>&1 &
sleep 5
cargo build --release
cargo run --release > cargo.log 2>&1 &
sleep 30
cat cargo.log
scrot screenshot.png
import -window root screenshot_imgagemagic.png
- name: Commit and push screenshot
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git add screenshot.png
git commit -m "Add screenshot" -a
git push

0 comments on commit ba9c69e

Please sign in to comment.