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
This commit is contained in:
1 parent
b7d60634dc
commit
b915667fba
2 files changed
+152
No files matched your search
@@ -0,0 +1,55 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user