Issue #212: Update #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux_Flatpak | |
on: | |
workflow_dispatch: | |
jobs: | |
build_ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y meson ninja-build libglib2.0-dev libxml2-dev libyaml-dev gettext libarchive-dev gperf pkg-config libstemmer-dev python3-dev python3-pip | |
- name: Install AppStream | |
run: | | |
git clone https://github.com/ximion/appstream.git | |
cd appstream | |
meson build | |
ninja -C build | |
sudo ninja -C build install | |
- name: Verify AppStream Version | |
appstreamcli --version | |
- name: Setup Flatpak | |
run: | | |
sudo apt update | |
sudo apt install -y flatpak-builder flatpak | |
- name: Add Flatpak repository | |
run: | | |
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | |
- name: Install KDE SDK and Runtime | |
run: | | |
sudo flatpak install -y flathub org.kde.Sdk/x86_64/6.8 org.kde.Platform/x86_64/6.8 | |
- name: List Flatpak Installed Packages and Version | |
run: | | |
flatpak --version | |
appstreamcli --version | |
flatpak list | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Build Flatpak | |
run: | | |
flatpak-builder --repo=repo --sandbox --force-clean build-dir ./Flatpak/io.github.JakubMelka.Pdf4qt.json | |
- name: Build Flatpak Package | |
run: | | |
flatpak build-bundle repo io.github.JakubMelka.Pdf4qt.flatpak io.github.JakubMelka.Pdf4qt | |
- name: Upload Flatpak Package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: io.github.JakubMelka.Pdf4qt.flatpak | |
path: ./io.github.JakubMelka.Pdf4qt.flatpak | |
retention-days: 30 | |
compression-level: 0 |