Skip to content

Commit a29a9ca

Browse files
flound1129claude
andcommitted
ci: add debian package build workflow for Debian 13 and Ubuntu 24.04
Builds .deb packages using dh-virtualenv in distro containers, uploads artifacts per distro/version. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8a48c99 commit a29a9ca

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/deb.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Debian Packages
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
tags:
8+
- "deluge-*"
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-deb:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 30
15+
strategy:
16+
matrix:
17+
include:
18+
- distro: debian
19+
version: trixie
20+
image: debian:trixie
21+
- distro: ubuntu
22+
version: noble
23+
image: ubuntu:24.04
24+
25+
container:
26+
image: ${{ matrix.image }}
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
33+
- name: Install build dependencies
34+
run: |
35+
apt-get update
36+
apt-get install -y --no-install-recommends \
37+
build-essential \
38+
debhelper \
39+
dh-virtualenv \
40+
intltool \
41+
python3 \
42+
python3-gi \
43+
python3-gi-cairo \
44+
python3-libtorrent \
45+
unzip
46+
47+
- name: Build packages
48+
run: dpkg-buildpackage -us -uc -b
49+
50+
- name: Collect debs
51+
run: mkdir -p dist && mv ../*.deb dist/
52+
53+
- uses: actions/upload-artifact@v4
54+
with:
55+
name: debs-${{ matrix.distro }}-${{ matrix.version }}
56+
path: dist/*.deb

0 commit comments

Comments
 (0)