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

48 lines
1.5 KiB
YAML
Raw Normal View History

2024-12-27 00:09:40 -08:00
name: Auto build
on:
push:
workflow_dispatch:
jobs:
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-18 18:21:06 -08:00
- name: Setup sweerepo
run: curl -sL 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:
2024-12-26 20:58:23 -08:00
path: sweecrypt-gtk.deb
flatpak:
name: Build Flatpak Package
2025-01-18 18:21:06 -08:00
runs-on: docker
2024-12-26 20:58:23 -08:00
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
2025-01-18 18:21:06 -08:00
- 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
2024-12-27 17:34:44 -08:00
- name: Install org.gnome.Sdk
2025-01-18 18:21:06 -08:00
run: flatpak -y install flathub org.gnome.Sdk//47
2024-12-27 17:34:44 -08:00
- name: Install org.gnome.Platform
2025-01-18 18:21:06 -08:00
run: flatpak -y install flathub org.gnome.Platform//47
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 21:55:10 -08:00
run: flatpak-builder --repo=flatrepo --disable-rofiles-fuse flatpak codes.swee.SweeCryptGTK.json
2024-12-27 00:25:32 -08:00
- name: Package the directory
2024-12-27 21:55:10 -08:00
run: tar -cvf flatpak.tar flatpak flatrepo
2024-12-26 20:58:23 -08:00
- uses: actions/upload-artifact@v3
with:
2024-12-27 00:22:43 -08:00
path: flatpak.tar