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: steps:
- uses: https://git.swee.codes/swee/setup-alpine@main - uses: https://git.swee.codes/swee/setup-alpine@main
with: 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 - uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: pip install --break-system-packages sweecrypt run: pip install --break-system-packages sweecrypt
@ -33,21 +33,16 @@ jobs:
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
# 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 scrot screenshot.png 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.png path: screenshot.png
- name: Stop the X11 server
run: pkill vncserver
apt: apt:
name: Build Debian Package name: Build Debian Package
runs-on: docker runs-on: docker