Skip to content

Commit 5977a00

Browse files
committed
Add dependabot and get debs on every commit
1 parent 02585d5 commit 5977a00

3 files changed

Lines changed: 55 additions & 2 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
labels:
8+
- buildsystem

.github/workflows/build.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
runs-on: ubuntu-24.04
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414

1515
- name: Install dependencies
1616
run: |
@@ -29,3 +29,48 @@ jobs:
2929

3030
- name: Build
3131
run: meson compile -C builddir
32+
33+
build-deb:
34+
runs-on: ubuntu-24.04
35+
strategy:
36+
matrix:
37+
include:
38+
- distro: ubuntu-24.04
39+
- distro: debian-12
40+
container: debian:12
41+
container: ${{ matrix.container || '' }}
42+
steps:
43+
- uses: actions/checkout@v5
44+
45+
- name: Install dependencies
46+
run: |
47+
if [ "$(id -u)" -ne 0 ]; then SUDO=sudo; fi
48+
$SUDO apt-get update
49+
$SUDO apt-get install -y \
50+
meson \
51+
ninja-build \
52+
valac \
53+
libglib2.0-dev \
54+
libgtk-4-dev \
55+
libadwaita-1-dev \
56+
libjson-glib-dev \
57+
make \
58+
dpkg-dev
59+
60+
- name: Build
61+
run: make
62+
63+
- name: Package .deb
64+
run: make deb
65+
66+
- name: Rename .deb with distro suffix
67+
run: |
68+
for f in dist/debian/deltachat-gnome/*.deb; do
69+
mv "$f" "${f%.deb}_${{ matrix.distro }}.deb"
70+
done
71+
72+
- name: Upload .deb artifacts
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: deltachat-gnome-${{ matrix.distro }}
76+
path: dist/debian/deltachat-gnome/*.deb

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
container: debian:12
2020
container: ${{ matrix.container || '' }}
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323

2424
- name: Install dependencies
2525
run: |

0 commit comments

Comments
 (0)