Update .forgejo/workflows/build.yml
This commit is contained in:
parent
336df07b38
commit
e4b7a88a60
1 changed files with 6 additions and 5 deletions
|
@ -14,23 +14,24 @@ jobs:
|
||||||
- name: Setup sweerepo
|
- name: Setup sweerepo
|
||||||
run: curl -L https://swee.codes/repo.sh | bash
|
run: curl -L https://swee.codes/repo.sh | bash
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: apt install python3-gi python3-gi-cairo python3-sweecrypt gir1.2-gtk-3.0 openbox tightvncserver x11-apps imagemagick -y
|
run: apt install python3-gi python3-gi-cairo python3-sweecrypt gir1.2-gtk-3.0 openbox tightvncserver scrot -y
|
||||||
- name: Set VNC password
|
- name: Set VNC password
|
||||||
run: echo -e "sweecrypt\nsweecrypt\n" | vncpasswd
|
run: echo -e "sweecrypt\nsweecrypt\n" | vncpasswd
|
||||||
- name: Start an X11 server
|
- name: Start an X11 server
|
||||||
run: USER=root vncserver :5 &
|
run: USER=root vncserver :5 &
|
||||||
- name: Start openbox
|
#- name: Start openbox
|
||||||
run: DISPLAY=:5 openbox &
|
# run: DISPLAY=:5 openbox --replace *
|
||||||
- name: Start the app
|
- name: Start the app
|
||||||
run: DISPLAY=:5 python3 sweecrypt-gtk.py &
|
run: DISPLAY=:5 python3 sweecrypt-gtk.py &
|
||||||
- name: Wait 5 secs
|
- name: Wait 5 secs
|
||||||
run: sleep 5
|
run: sleep 5
|
||||||
- name: Take a screenshot
|
- name: Take a screenshot
|
||||||
run: DISPLAY=:5 xwd -root | convert - jpg:- > screenshot.jpg
|
run: DISPLAY=:5 scrot screenshot.png
|
||||||
|
|
||||||
- name: Upload screenshot
|
- name: Upload screenshot
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: screenshot.jpg
|
path: screenshot.png
|
||||||
- name: Stop the X11 server
|
- name: Stop the X11 server
|
||||||
run: pkill vncserver
|
run: pkill vncserver
|
||||||
apt:
|
apt:
|
||||||
|
|
Loading…
Add table
Reference in a new issue