test arm64 flatpak

This commit is contained in:
Paul Sajna 2025-04-02 01:12:51 -07:00
parent c77ac79d39
commit 8416e3212d
2 changed files with 59 additions and 0 deletions

View File

@ -96,6 +96,30 @@ build_linux_arm64_bundle:
only:
- schedules
build_linux_arm64_flatpak:
tags:
- saas-linux-small-arm64
image: ubuntu:24.04
stage: build
dependencies: [build_linux_arm64_bundle]
needs:
- job: build_linux_arm64_bundle
artifacts: true
script:
- apt-get update
- apt-get install -y --no-install-recommends flatpak flatpak-builder gnupg2 elfutils ca-certificates
- flatpak remote-add --no-gpg-verify --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- flatpak install -y --noninteractive org.gnome.Sdk/aarch64/46 org.gnome.Platform/aarch64/46 app/org.flathub.flatpak-external-data-checker/aarch64/stable org.freedesktop.appstream-glib
- pushd flatpak/
- flatpak-builder --force-clean build-dir com.veilid.veilidchat.arm64.yml --repo=repo
- flatpak build-bundle repo com.veilid.veilidchat.flatpak com.veilid.veilidchat
- popd
artifacts:
paths:
- flatpak/com.veilid.veilidchat.flatpak
only:
- schedules
#test:
# extends:
# - .macos_saas_runners

View File

@ -0,0 +1,35 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/flatpak/flatpak-builder/main/data/flatpak-manifest.schema.json
---
app-id: com.veilid.veilidchat
runtime: org.gnome.Platform
runtime-version: "46"
sdk: org.gnome.Sdk
command: veilidchat
separate-locales: false
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --socket=pulseaudio
- --share=network
- --talk-name=org.freedesktop.secrets
modules:
- name: VeilidChat
buildsystem: simple
only-arches:
- aarch64
build-commands:
- "./build-flatpak.sh"
sources:
- type: dir
path: ../build/linux/arm64/release/
- type: file
path: build-flatpak.sh
- type: file
path: com.veilid.veilidchat.png
- type: file
path: com.veilid.veilidchat.desktop
- type: file
path: com.veilid.veilidchat.metainfo.xml