Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add Flatpak Workflow #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Flatpak

on:
push:
branches: [master]
pull_request:

jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-47
options: --privileged
strategy:
matrix:
arch: [x86_64]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: palette.flatpak
manifest-path: org.gnome.zbrown.Palette.yml
cache-key: flatpak-builder-${{ github.sha }}
43 changes: 43 additions & 0 deletions deploy/flatpack/org.mavlink.qgroundcontrol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
app-id: org.mavlink.qgroundcontrol
runtime: org.kde.Platform
runtime-version: "6.7"
sdk: org.kde.Sdk
command: QGroundControl
rename-appdata-file: org.mavlink.qgroundcontrol.metainfo.xml

finish-args:
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --device=all # allow access USB Serial
- --share=ipc
- --share=network
- --filesystem=home
- --filesystem=xdg-run/gvfs # GVfs
- --filesystem=/media # automount via udisks
- --filesystem=/run/udev:ro # enables firmware upload & auto connecting

build-options:
build-args:
- "--share=network"

modules:
- name: QGroundControl
sources:
- type: git
url: https://github.com/mavlink/qgroundcontrol.git
commit: 2aefff18582141bebba650a0d033f8c9a5d3457c
buildsystem: cmake-ninja
builddir: true
config-opts:
- -D BUILD_SHARED_LIBS=OFF
- -D OpenGL_GL_PREFERENCE=GLVND
- -D BUILD_TESTING=OFF
cleanup:
- /include
- /bin/dbf*
- /bin/shp*
- /lib/cmake
- /share/shapelib
- '*.a'
- '*.cmake'
Loading