sweeCrypt-GTK/.forgejo/workflows/build.yml

51 lines
1.5 KiB
YAML
Raw Normal View History

2025-01-19 13:20:27 -08:00
name: Test
on:
push:
workflow_dispatch:
jobs:
2025-01-19 13:20:27 -08:00
x11:
name: Test the application
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Setup sweerepo
run: curl -L https://swee.codes/repo.sh | bash
- name: Install dependencies
2025-01-19 13:28:15 -08:00
run: apt install python3-gi python3-gi-cairo python3-sweecrypt gir1.2-gtk-3.0 openbox tightvncserver x11-apps imagemagick -y
2025-01-19 13:20:27 -08:00
- name: Start an X11 server
2025-01-19 13:34:48 -08:00
run: USER=root vncserver :5
2025-01-19 13:20:27 -08:00
- name: Start openbox
run: DISPLAY=:5 openbox &
- name: Start the app
run: DISPLAY=:5 python3 sweecrypt-gtk.py &
- name: Wait 5 secs
run: sleep 5
- name: Take a screenshot
run: xwd -root -display :5 | convert - jpg:- > screenshot.jpg
- name: Upload screenshot
uses: actions/upload-artifact@v3
with:
path: screenshot.jpg
2025-01-19 13:31:32 -08:00
- name: Stop the X11 server
2025-01-19 13:34:48 -08:00
run: pkill vncserver
2024-12-26 20:58:23 -08:00
apt:
name: Build Debian Package
2025-01-18 18:21:06 -08:00
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
2025-01-19 13:03:25 -08:00
#- name: Install dependencies for sweerepo
# run: apt update && apt install curl sudo
2025-01-18 18:21:06 -08:00
- name: Setup sweerepo
2025-01-19 12:58:35 -08:00
run: curl -L https://swee.codes/repo.sh | bash
- name: Install dependencies
2025-01-18 18:21:55 -08:00
run: apt install python3-gi python3-gi-cairo python3-sweecrypt gir1.2-gtk-3.0 -y
- name: Generate DEB
run: |
2025-01-18 18:21:06 -08:00
python3 generate-deb.py
2024-12-18 15:44:30 -08:00
- uses: actions/upload-artifact@v3
2024-10-12 22:58:09 -07:00
with:
2025-01-19 12:55:58 -08:00
path: sweecrypt-gtk.deb