Update .forgejo/workflows/build.yml
All checks were successful
Test / Check syntax (push) Successful in 12s
Test / Build Debian Package (push) Successful in 19s
Test / Test the application (push) Successful in 43s

This commit is contained in:
Nova Cat 2025-01-20 19:01:41 -08:00
parent deea8a1bd6
commit 06dad0330c

View file

@ -25,7 +25,7 @@ jobs:
steps:
- uses: https://git.swee.codes/swee/setup-alpine@main
with:
additional: tigervnc py3-gobject3 py3-xdg py3-pip gtk+3.0 openbox scrot
additional: tigervnc py3-gobject3 py3-xdg py3-pip gtk+3.0 apk-gtk3 openbox scrot
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install --break-system-packages sweecrypt
@ -33,21 +33,16 @@ jobs:
run: echo -e "sweecrypt\nsweecrypt\n" | vncpasswd
- name: Start an X11 server
run: USER=root vncserver :5 &
#- name: Start openbox
# run: DISPLAY=:5 openbox --replace *
- name: Start the app
run: DISPLAY=:5 python3 sweecrypt-gtk.py &
- name: Wait 5 secs
run: sleep 5
- name: Take a screenshot
run: DISPLAY=:5 scrot screenshot.png
- name: Upload screenshot
uses: actions/upload-artifact@v3
with:
path: screenshot.png
- name: Stop the X11 server
run: pkill vncserver
apt:
name: Build Debian Package
runs-on: docker