Skip to content

Commit

Permalink
rage
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrejb committed Mar 11, 2024
1 parent f0945fe commit 21b35df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/take_screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
CARGO_TERM_COLOR: always
DISPLAY: :0
DISPLAY: :99
SLINT_FULLSCREEN: 1
RUST_LOG: debug

Expand Down Expand Up @@ -44,18 +44,20 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb x11vnc scrot imagemagick libxkbcommon-x11-0
sudo apt-get install -y xvfb xwd scrot imagemagick libxkbcommon-x11-0
- name: Build
run: cargo build --release

- name: Start Xvfb
run: |
xvnc -geometry 1024x768 -depth 16 :0 > /dev/null 2>&1 &
Xvfb :99 -screen 0 768x1024x24 & > /dev/null 2>&1 &
sleep 5
cargo run --release > cargo.log 2>&1 &
sleep 30
cat cargo.log
xwd -root -out screenshot.xwd
convert screenshot.xwd fooPoop.png
scrot screenshot.png
- name: Commit and push screenshot
Expand Down

0 comments on commit 21b35df

Please sign in to comment.