2024-12-27 00:09:40 -08:00
|
|
|
name: Auto build
|
2024-10-12 22:31:21 -07:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2024-12-26 20:58:23 -08:00
|
|
|
apt:
|
|
|
|
name: Build Debian Package
|
2024-12-18 15:44:54 -08:00
|
|
|
runs-on: debian-latest
|
2024-10-12 22:31:21 -07:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
|
|
- name: Install dependencies
|
2024-10-12 22:56:44 -07:00
|
|
|
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
|
|
- name: Generate DEB
|
2024-10-12 22:31:21 -07:00
|
|
|
run: |
|
2024-10-12 22:56:44 -07:00
|
|
|
python 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:
|
2024-12-26 20:58:23 -08:00
|
|
|
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
|
2024-12-26 21:07:39 -08:00
|
|
|
- name: Install org.freedesktop.Sdk
|
2024-12-26 21:03:56 -08:00
|
|
|
run: flatpak -y --user install flathub org.freedesktop.Sdk//24.08
|
2024-12-26 21:07:39 -08:00
|
|
|
- name: Install org.freedesktop.Platform
|
2024-12-26 21:09:07 -08:00
|
|
|
run: flatpak -y --user install flathub org.freedesktop.Platform//24.08
|
2024-12-26 21:07:39 -08:00
|
|
|
- name: Generate file for use in flatpak
|
|
|
|
run: python generate-flatpak.py
|
|
|
|
- name: Build flatpak package
|
2024-12-27 00:16:14 -08:00
|
|
|
run: flatpak-builder --disable-rofiles-fuse flatpak codes.swee.SweeCryptGTK.json
|
2024-12-26 20:58:23 -08:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
path: flatpak/
|