sweeCrypt-GTK/.forgejo/workflows/build.yml
swee 5671b9bf06
Some checks failed
Sanity check / Build Debian Package (push) Successful in 9s
Sanity check / Build Flatpak Package (push) Failing after 7s
Update .forgejo/workflows/build.yml
2024-12-26 21:07:39 -08:00

42 lines
No EOL
1.2 KiB
YAML

name: Sanity check
on:
push:
workflow_dispatch:
jobs:
apt:
name: Build Debian Package
runs-on: debian-latest
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
- name: Generate DEB
run: |
python generate-deb.py
- uses: actions/upload-artifact@v3
with:
path: sweecrypt-gtk.deb
flatpak:
name: Build Flatpak Package
runs-on: debian-latest
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
- name: Install org.freedesktop.Sdk
run: flatpak -y --user install flathub org.freedesktop.Sdk//24.08
- name: Install org.freedesktop.Platform
run: flatpak -y --user install flathub org.freedesktop.Runtime//24.08
- name: Generate file for use in flatpak
run: python generate-flatpak.py
- name: Build flatpak package
run: flatpak-builder flatpak codes.swee.SweeCryptGTK.json
- uses: actions/upload-artifact@v3
with:
path: flatpak/