Flatpak #1002
Workflow file for this run
This file contains hidden or 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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
name: "Flatpak" | |
jobs: | |
flatpak: | |
name: "Flatpak" | |
strategy: | |
matrix: | |
os: [ubuntu-24.04, ubuntu-24.04-arm] | |
include: | |
- os: ubuntu-24.04 | |
arch: x86_64 | |
- os: ubuntu-24.04-arm | |
arch: aarch64 | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
container: | |
image: registry.fedoraproject.org/fedora | |
options: --privileged | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Prepare | |
run: | | |
dnf install -y dbus-daemon flatpak flatpak-builder git-lfs python3-aiohttp python3-tenacity \ | |
python3-gobject xorg-x11-server-Xvfb ccache zstd libappstream-glib | |
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | |
flatpak install flathub org.flatpak.Builder -y | |
- name: Build | |
uses: flatpak/flatpak-github-actions/flatpak-builder@master | |
with: | |
bundle: com.github.rafostar.Clapper.flatpak | |
manifest-path: pkgs/flatpak/com.github.rafostar.Clapper.json | |
cache-key: flatpak-builder-${{ github.sha }} | |
arch: ${{ matrix.arch }} | |
upload-artifact: false | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: clapper-flatpak-${{ matrix.arch }} | |
path: com.github.rafostar.Clapper.flatpak | |
if-no-files-found: error |