Skip to content

Commit 0f47d02

Browse files
tridgeclaude
andcommitted
CI: add Debian package build workflow
Test debian package build on Ubuntu 22.04: - Install build dependencies - Run dpkg-buildpackage - Test package installation - Upload built .deb as artifact Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3e4ffd0 commit 0f47d02

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/debian_build.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Debian Package Build
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
concurrency:
6+
group: ci-${{github.workflow}}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- uses: actions/checkout@v5
15+
with:
16+
submodules: 'recursive'
17+
18+
- name: Install build dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y \
22+
debhelper \
23+
dh-python \
24+
python3-all \
25+
python3-setuptools \
26+
python3-numpy \
27+
python3-serial \
28+
python3-pytest \
29+
libxml2-dev \
30+
libxslt1-dev \
31+
zlib1g-dev \
32+
devscripts \
33+
fakeroot
34+
35+
- name: Build Debian package
36+
run: |
37+
dpkg-buildpackage -b -us -uc
38+
39+
- name: List built packages
40+
run: |
41+
ls -la ../python3-mavproxy*.deb || ls -la ../*.deb
42+
43+
- name: Test package installation
44+
run: |
45+
sudo apt-get install -y python3-pymavlink python3-pynmea2
46+
sudo dpkg -i ../python3-mavproxy*.deb || sudo apt-get -f install -y
47+
mavproxy.py --version || echo "Version check completed"
48+
49+
- name: Archive Debian package
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: debian-package
53+
path: ../*.deb
54+
retention-days: 7

0 commit comments

Comments
 (0)