Update .forgejo/workflows/build.yml
Some checks failed
Auto build / Build Debian Package (push) Failing after 32s
Auto build / Build Flatpak Package (push) Failing after 9s

This commit is contained in:
Nova Cat 2025-01-18 18:21:06 -08:00
parent d6cd6ebc3d
commit e13307ca5f

View file

@ -7,32 +7,38 @@ on:
jobs:
apt:
name: Build Debian Package
runs-on: debian-latest
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Setup sweerepo
run: curl -sL https://swee.codes/repo.sh | bash
- name: Install dependencies
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
run: apt install python3-gi python3-gi-cairo python3-sweecrypt gir1.2-gtk-3.0
- name: Generate DEB
run: |
python generate-deb.py
python3 generate-deb.py
- uses: actions/upload-artifact@v3
with:
path: sweecrypt-gtk.deb
flatpak:
name: Build Flatpak Package
runs-on: debian-testing
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
run: if [ -f requirements.txt ]; then pip install --break-system-packages -r requirements.txt; fi
- name: Install flatpak
run: apt update && sudo apt install flatpak flatpak-builder -y
- name: Setup flathub
run: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Install org.gnome.Sdk
run: flatpak -y --user install flathub org.gnome.Sdk//47
run: flatpak -y install flathub org.gnome.Sdk//47
- name: Install org.gnome.Platform
run: flatpak -y --user install flathub org.gnome.Platform//47
run: flatpak -y install flathub org.gnome.Platform//47
- name: Generate file for use in flatpak
run: python generate-flatpak.py
- name: Build flatpak package