Skip to content

Commit

Permalink
Flatpak Updates (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jun 13, 2023
1 parent 3606e49 commit f323992
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 27 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

name: CI

on:
Expand All @@ -12,32 +14,48 @@ jobs:
name: Flatpak
runs-on: ubuntu-latest

strategy:
matrix:
arch: [x86_64, aarch64]
# Don't fail the whole workflow if one architecture fails
fail-fast: false

container:
image: ghcr.io/elementary/flatpak-platform/runtime:daily
image: ghcr.io/elementary/flatpak-platform/runtime:7.1-${{ matrix.arch }}
options: --privileged

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU for aarch64 emulation
if: ${{ matrix.arch != 'x86_64' }}
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: calendar.flatpak
bundle: Calendar.flatpak
manifest-path: io.elementary.calendar.yml
run-tests: true
repository-name: appcenter
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
cache-key: "flatpak-builder-${{ github.sha }}"
branch: daily
arch: ${{ matrix.arch }}

lint:
name: Lint
runs-on: ubuntu-latest

container:
image: valalang/lint

steps:
- uses: actions/checkout@v3
- name: Lint
run: io.elementary.vala-lint -d .
- name: Checkout
uses: actions/checkout@v3

- name: Lint
run: io.elementary.vala-lint -d .
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,26 @@ jobs:

if: github.event.pull_request.merged == true && true == contains(join(github.event.pull_request.labels.*.name), 'Release')

strategy:
matrix:
arch: [x86_64, aarch64]
# Don't fail the whole workflow if one architecture fails
fail-fast: false

container:
image: ghcr.io/elementary/flatpak-platform/runtime:6
image: ghcr.io/elementary/flatpak-platform/runtime:7.1-${{ matrix.arch }}
options: --privileged

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU for aarch64 emulation
if: ${{ matrix.arch != 'x86_64' }}
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
Expand All @@ -51,6 +63,7 @@ jobs:
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
cache-key: "flatpak-builder-${{ github.sha }}"
branch: stable
arch: ${{ matrix.arch }}

- name: Deploy
uses: flatpak/flatpak-github-actions/flat-manager@v6
Expand Down
91 changes: 91 additions & 0 deletions eds-gdatasession.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
From 4742f6325edf37d9e8e84f87e2fdc07039d78f1d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Corentin=20No=C3=ABl?= <corentin.noel@collabora.com>
Date: Mon, 12 Dec 2022 16:57:20 +0100
Subject: [PATCH] M!109 - EGDataSession: Make it available to the GObject
introspection

This allows to use EGDataSession with any GObject introspected language.

Closes: https://gitlab.gnome.org/GNOME/evolution-data-server/-/merge_requests/109
---
src/libedataserver/CMakeLists.txt | 2 +-
src/libedataserver/e-gdata-session.h | 4 ----
src/vala/CMakeLists.txt | 1 +
src/vala/EDataServer-1.2.metadata | 11 +++--------
4 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/src/libedataserver/CMakeLists.txt b/src/libedataserver/CMakeLists.txt
index 2dfc1bde4..5ccb29b56 100644
--- a/src/libedataserver/CMakeLists.txt
+++ b/src/libedataserver/CMakeLists.txt
@@ -295,7 +295,7 @@ install(FILES ${HEADERS}

set(gir_sources ${SOURCES} ${HEADERS})
set(gir_identifies_prefixes E)
-set(gir_includes GObject-2.0 Gio-2.0 Soup-3.0 libxml2-2.0)
+set(gir_includes GObject-2.0 Gio-2.0 Soup-3.0 libxml2-2.0 Json-1.0)
set(gir_cflags
-DLIBEDATASERVER_COMPILATION
)
diff --git a/src/libedataserver/e-gdata-session.h b/src/libedataserver/e-gdata-session.h
index d58dde42b..c87f8f596 100644
--- a/src/libedataserver/e-gdata-session.h
+++ b/src/libedataserver/e-gdata-session.h
@@ -11,8 +11,6 @@
#ifndef E_GDATA_SESSION_H
#define E_GDATA_SESSION_H

-#ifndef __GI_SCANNER__
-
#include <json-glib/json-glib.h>
#include <libedataserver/e-gdata-query.h>
#include <libedataserver/e-soup-session.h>
@@ -222,8 +220,6 @@ gboolean e_gdata_session_tasks_update_sync (EGDataSession *self,
GCancellable *cancellable,
GError **error);

-#endif /* __GI_SCANNER__ */
-
G_END_DECLS

#endif /* E_GDATA_SESSION_H */
diff --git a/src/vala/CMakeLists.txt b/src/vala/CMakeLists.txt
index 2f88c3925..8cc698ac3 100644
--- a/src/vala/CMakeLists.txt
+++ b/src/vala/CMakeLists.txt
@@ -107,6 +107,7 @@ set(vala_deps
gio-2.0
libsoup-3.0
libxml-2.0
+ json-glib-1.0
posix
)

diff --git a/src/vala/EDataServer-1.2.metadata b/src/vala/EDataServer-1.2.metadata
index 255437be6..1c28ae8fc 100644
--- a/src/vala/EDataServer-1.2.metadata
+++ b/src/vala/EDataServer-1.2.metadata
@@ -6,14 +6,7 @@ xml_get_child_by_name skip=false type="Xml.Node*?"
xml_get_child_by_name.parent type="Xml.Node*"
xml_get_child_by_name.child_name type="string"

-xmlhash_add parent="E.XmlHash"
-xmlhash_compare parent="E.XmlHash"
-xmlhash_destroy parent="E.XmlHash"
-xmlhash_foreach_key_remove parent="E.XmlHash"
-xmlhash_foreach_key parent="E.XmlHash"
-xmlhash_new parent="E.XmlHash"
-xmlhash_remove parent="E.XmlHash"
-xmlhash_write parent="E.XmlHash"
+xmlhash_* name="xmlhash_(.+)" parent="E.XmlHash"

time_parse_date.result type="Posix.tm"
time_parse_date_and_time.result type="Posix.tm"
@@ -32,3 +25,5 @@ webdav_discover_sources_finish parent="E.Source" symbol_type="method" instance_i
webdav_discover_sources_full parent="E.Source" symbol_type="method" instance_idx=0 finish_name="e_webdav_discover_sources_finish"
webdav_discover_sources_full_sync parent="E.Source" symbol_type="method" instance_idx=0
webdav_discover_sources_sync parent="E.Source" symbol_type="method" instance_idx=0
+
+gdata_* name="gdata_(.+)" parent="E.GData"
--
GitLab
84 changes: 63 additions & 21 deletions io.elementary.calendar.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app-id: io.elementary.calendar
runtime: io.elementary.Platform
runtime-version: '6'
runtime-version: '7.1'
sdk: io.elementary.Sdk
command: io.elementary.calendar
finish-args:
Expand Down Expand Up @@ -43,10 +43,13 @@ modules:
- '-DICAL_GLIB_VAPI=true'
- '-DGOBJECT_INTROSPECTION=true'
- '-DICAL_BUILD_DOCS=false'
- '-DWITH_CXX_BINDINGS=false'
- '-DSHARED_ONLY=true'
- '-DLIBICAL_BUILD_TESTING=false'
sources:
- type: git
url: https://github.com/libical/libical.git
tag: v3.0.8
tag: v3.0.9

- name: evolution-data-server
buildsystem: cmake-ninja
Expand All @@ -61,17 +64,21 @@ modules:
- '-DENABLE_GOA=OFF'
- '-DENABLE_GOOGLE=ON'
- '-DENABLE_VALA_BINDINGS=ON'
- '-DENABLE_INTROSPECTION=ON'
- '-DENABLE_GOA=OFF'
- '-DENABLE_CANBERRA=OFF'
- '-DWITH_LIBDB=OFF'
- '-DENABLE_WEATHER=OFF'
- '-DWITH_OPENLDAP=OFF'
- '-DWITH_LIBDB=OFF'
- '-DENABLE_INTROSPECTION=ON'
- '-DENABLE_INSTALLED_TESTS=OFF'
- '-DENABLE_GTK_DOC=OFF'
- '-DENABLE_EXAMPLES=OFF'
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/evolution-data-server.git
tag: '3.40.2'
- type: archive
url: https://download.gnome.org/sources/evolution-data-server/3.46/evolution-data-server-3.46.4.tar.xz
sha256: a59b254145c59facd7c7b5382db78dc5f0ed1f6a6e9b8fe7d5e75959f93c0cc8
- type: patch
path: 'eds-gdatasession.patch'
modules:
- name: intltool
cleanup:
Expand All @@ -80,22 +87,56 @@ modules:
- type: archive
url: https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz
md5: 12e517cac2b57a0121cda351570f1e63
- name: libgdata
buildsystem: meson

- name: clutter-gtk
cleanup:
- "/share/gtk-doc"
sources:
- type: archive
url: https://download.gnome.org/sources/clutter-gtk/1.8/clutter-gtk-1.8.4.tar.xz
sha256: 521493ec038973c77edcb8bc5eac23eed41645117894aaee7300b2487cb42b06
modules:
- name: cogl
config-opts:
- '-Dalways_build_tests=false'
- '-Dgoa=disabled'
- "--disable-cogl-gst"
- "--disable-gtk-doc"
- "--enable-xlib-egl-platform"
- "--enable-wayland-egl-platform"
cleanup:
- "/share/gtk-doc"
- "/share/cogl/examples-data"
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/libgdata.git
tag: '0.18.0'
- type: archive
url: https://download.gnome.org/sources/cogl/1.22/cogl-1.22.8.tar.xz
sha256: a805b2b019184710ff53d0496f9f0ce6dcca420c141a0f4f6fcc02131581d759
- name: clutter
config-opts:
- "--disable-gtk-doc"
- "--enable-egl-backend"
- "--enable-wayland-backend"
- "--enable-deprecated=no"
cleanup:
- "/share/gtk-doc"
sources:
- type: archive
url: https://download.gnome.org/sources/clutter/1.26/clutter-1.26.4.tar.xz
sha256: 8b48fac159843f556d0a6be3dbfc6b083fc6d9c58a20a49a6b4919ab4263c4e6
- name: clutter-gst
config-opts:
- "--disable-gtk-doc"
cleanup:
- "/share/gtk-doc"
sources:
- type: archive
url: https://download.gnome.org/sources/clutter-gst/3.0/clutter-gst-3.0.27.tar.xz
sha256: fe69bd6c659d24ab30da3f091eb91cd1970026d431179b0724f13791e8ad9f9d

- name: champlain
buildsystem: meson
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/libchamplain.git
tag: LIBCHAMPLAIN_0_12_20
- type: archive
url: https://download.gnome.org/sources/libchamplain/0.12/libchamplain-0.12.21.tar.xz
sha256: a915cd172a0c52944c5579fcb4683f8a878c571bf5e928254b5dafefc727e5a7

- name: folks
buildsystem: meson
Expand All @@ -108,17 +149,18 @@ modules:
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/folks.git
tag: '0.14'
tag: '0.15.5'

- name: geocode-glib
buildsystem: meson
config-opts:
- '-Denable-installed-tests=false'
- '-Denable-gtk-doc=false'
- '-Dsoup2=false'
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/geocode-glib.git
tag: '3.26.2'
- type: archive
url: https://download.gnome.org/sources/geocode-glib/3.26/geocode-glib-3.26.4.tar.xz
sha256: 2d9a6826d158470449a173871221596da0f83ebdcff98b90c7049089056a37aa

- name: libportal
buildsystem: meson
Expand Down

0 comments on commit f323992

Please sign in to comment.