Skip to content

Commit ba08cc1

Browse files
authored
Update CI for Flatpak and GNOME 48
* Bump Flatpak's Gnome from 47 to 48 and require libadwaita 1.5 at least * Use the official github actions image instaed * Combine CI jobs to avoid duplicated tasks between commit and releases
1 parent c340348 commit ba08cc1

4 files changed

Lines changed: 27 additions & 68 deletions

File tree

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
name: Build
1+
name: CI
22

33
on:
44
push:
55
branches: [master]
6+
tags: ['*']
67
pull_request:
78
branches: [master]
89

10+
permissions:
11+
contents: write
12+
913
jobs:
1014
build:
1115
runs-on: ubuntu-24.04
@@ -55,16 +59,16 @@ jobs:
5559
- name: Package .deb
5660
run: make deb
5761

58-
- name: Upload .deb artifacts
62+
- name: Upload .deb artifact
5963
uses: actions/upload-artifact@v7
6064
with:
61-
name: deltachat-gnome-ubuntu-24.04
65+
name: deltachat-gnome-deb
6266
path: dist/debian/deltachat-gnome/*.deb
6367

6468
build-flatpak:
6569
runs-on: ubuntu-24.04
6670
container:
67-
image: bilelmoussaoui/flatpak-github-actions:gnome-47
71+
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
6872
options: --privileged
6973
steps:
7074
- uses: actions/checkout@v6
@@ -73,9 +77,22 @@ jobs:
7377
with:
7478
manifest-path: dist/flatpak/org.deltachat.Gnome.json
7579
bundle: deltachat-gnome.flatpak
80+
cache-key: flatpak-builder-${{ hashFiles('dist/flatpak/org.deltachat.Gnome.json') }}
7681

77-
- name: Upload .flatpak artifact
78-
uses: actions/upload-artifact@v7
82+
release:
83+
if: startsWith(github.ref, 'refs/tags/')
84+
needs: [build-deb, build-flatpak]
85+
runs-on: ubuntu-24.04
86+
steps:
87+
- name: Download artifacts
88+
uses: actions/download-artifact@v7
89+
with:
90+
path: artifacts
91+
merge-multiple: true
92+
93+
- name: Publish release
94+
uses: softprops/action-gh-release@v2
7995
with:
80-
name: deltachat-gnome-flatpak
81-
path: deltachat-gnome.flatpak
96+
files: |
97+
artifacts/**/*.deb
98+
artifacts/**/*.flatpak

.github/workflows/release.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

dist/flatpak/org.deltachat.Gnome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "org.deltachat.Gnome",
33
"runtime": "org.gnome.Platform",
4-
"runtime-version": "47",
4+
"runtime-version": "48",
55
"sdk": "org.gnome.Sdk",
66
"command": "deltachat-gnome",
77
"finish-args": [

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ deps = [
77
dependency('glib-2.0'),
88
dependency('gio-2.0'),
99
dependency('gtk4'),
10-
dependency('libadwaita-1', version: '>= 1.0'),
10+
dependency('libadwaita-1', version: '>= 1.5'),
1111
dependency('json-glib-1.0'),
1212
]
1313

0 commit comments

Comments
 (0)