Files
opu/.github/workflows/flatpak.yml
T
yann64andClaude Opus 5.5 b915667fba
CI / Linux arm64 (push) Waiting to run
CI / Linux x86_64 (push) Waiting to run
CI / ASan + UBSan (push) Waiting to run
Flatpak / Flatpak aarch64 (push) Waiting to run
Flatpak / Flatpak x86_64 (push) Waiting to run
Flatpak manifest and workflow
- packaging/flatpak/io.github.openpu.OpenPU.yml: GNOME 51 runtime, with
  the gtkmm stack built from source (libsigc++ 3.6, cairomm 1.18, glibmm
  2.90, pangomm 2.58, gtkmm 4.24) and nlohmann_json. Permissions: network,
  display, UDisks2 on the system bus, the download folder and the stick
  mount points.
- Flatpak workflow: bundles for x86_64 and aarch64 in Flathub's GNOME
  container, attached to the release of a vX.Y.Z tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
2026-11-29 08:01:56 +01:00

56 lines
1.8 KiB
YAML

# SPDX-License-Identifier: MIT
# Flatpak bundle for x86_64 and aarch64, built in Flathub's GNOME container. Runs when the
# manifest changes, on demand, and on vX.Y.Z tags (the bundle is then attached to the release).
name: Flatpak
on:
push:
branches: [main]
paths: ["packaging/flatpak/**", ".github/workflows/flatpak.yml"]
tags: ["v*"]
workflow_dispatch:
permissions:
contents: write
jobs:
flatpak:
name: Flatpak ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
runner: ubuntu-24.04
- arch: aarch64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-51
options: --privileged
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: OpenPU-${{ matrix.arch }}.flatpak
manifest-path: packaging/flatpak/io.github.openpu.OpenPU.yml
arch: ${{ matrix.arch }}
cache-key: flatpak-builder-${{ matrix.arch }}-${{ hashFiles('packaging/flatpak/*.yml') }}
- name: Attach to the release
if: startsWith(github.ref, 'refs/tags/v')
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.ref_name }}
run: |
git config --global --add safe.directory "$PWD"
bundle="OpenPU-${TAG#v}-${{ matrix.arch }}.flatpak"
mv "OpenPU-${{ matrix.arch }}.flatpak" "$bundle"
gh release view "$TAG" >/dev/null 2>&1 ||
gh release create "$TAG" --verify-tag --title "OpenPU ${TAG#v}" --notes-from-tag ||
gh release view "$TAG" >/dev/null
gh release upload "$TAG" "$bundle" --clobber