mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-22 00:50:59 +00:00
flatpak: add a builder to build nightly flatpak
This commit is contained in:
parent
2548040463
commit
ad9c8a8ee3
2 changed files with 54 additions and 21 deletions
|
@ -89,30 +89,27 @@ clippy:
|
||||||
- cargo clippy --color=always --all-targets -- -D warnings
|
- cargo clippy --color=always --all-targets -- -D warnings
|
||||||
|
|
||||||
flatpak:
|
flatpak:
|
||||||
image: $GNOME_RUNTIME_IMAGE
|
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:40"
|
||||||
stage: "test"
|
stage: test
|
||||||
only:
|
only:
|
||||||
- flatpak
|
- flatpak
|
||||||
timeout: "120min"
|
|
||||||
variables:
|
variables:
|
||||||
MANIFEST_PATH: "build-aux/org.karapulse.KarapulseDevel.json"
|
BUNDLE: "gst-pipeline-studio-nightly.flatpak"
|
||||||
APP_ID: "org.karapulse.KarapulseDevel"
|
MANIFEST_PATH: "build-aux/org.freedesktop.dabrain34.GstPipelineStudio.Devel.json"
|
||||||
BUNDLE: "karapulse-nightly.flatpak"
|
FLATPAK_MODULE: "gst-pipeline-studio"
|
||||||
|
APP_ID: "org.freedesktop.dabrain34.GstPipelineStudio.Devel"
|
||||||
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
||||||
script:
|
script:
|
||||||
- flatpak-builder app ${MANIFEST_PATH}
|
- >
|
||||||
- flatpak build-export repo app
|
xvfb-run -a -s "-screen 0 1024x768x24"
|
||||||
- flatpak build-bundle repo ${BUNDLE} ${APP_ID}
|
flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
|
||||||
|
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
|
||||||
artifacts:
|
artifacts:
|
||||||
|
name: "Flatpak artifacts"
|
||||||
|
expose_as: "Get Flatpak bundle here"
|
||||||
|
when: "always"
|
||||||
paths:
|
paths:
|
||||||
- $BUNDLE
|
- "${BUNDLE}"
|
||||||
expire_in: 1 days
|
- ".flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/meson-log.txt"
|
||||||
|
- ".flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.txt"
|
||||||
cache:
|
expire_in: 14 days
|
||||||
key: "flatpak"
|
|
||||||
paths:
|
|
||||||
- .flatpak-builder/downloads/
|
|
||||||
- .flatpak-builder/git/
|
|
||||||
- target/
|
|
||||||
- target_test/
|
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
"app-id": "org.freedesktop.dabrain34.GstPipelineStudio.Devel",
|
||||||
|
"runtime": "org.gnome.Platform",
|
||||||
|
"runtime-version": "40",
|
||||||
|
"sdk": "org.gnome.Sdk",
|
||||||
|
"sdk-extensions": ["org.freedesktop.Sdk.Extension.rust-stable"],
|
||||||
|
"command": "gtk-rust-template",
|
||||||
|
"finish-args": [
|
||||||
|
"--socket=fallback-x11",
|
||||||
|
"--socket=wayland",
|
||||||
|
"--device=dri",
|
||||||
|
"--talk-name=org.a11y.Bus",
|
||||||
|
"--env=RUST_LOG=gtk-rust-template=debug",
|
||||||
|
"--env=G_MESSAGES_DEBUG=none",
|
||||||
|
"--env=RUST_BACKTRACE=1"
|
||||||
|
],
|
||||||
|
"build-options": {
|
||||||
|
"append-path": "/usr/lib/sdk/rust-stable/bin",
|
||||||
|
"build-args": ["--share=network"],
|
||||||
|
"test-args": ["--socket=x11", "--share=network"]
|
||||||
|
},
|
||||||
|
"modules": [
|
||||||
|
{
|
||||||
|
"name": "gst_pipeline_studio",
|
||||||
|
"buildsystem": "meson",
|
||||||
|
"run-tests": true,
|
||||||
|
"config-opts": ["-Dprofile=development"],
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "dir",
|
||||||
|
"path": "../"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue